Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Error in the use of SubApplication(Type error: null pointer)
Error in the use of SubApplication [message #1738674] Fri, 22 July 2016 07:32 Go to next message
Michele Citro is currently offline Michele CitroFriend
Messages: 29
Registered: June 2016
Junior Member
Good morning,

I have a question for you.

When I create and use a SubApplication (example, in the creation of I/O), it can happen un error of type null pointer.

This situation causes the end of Subapplication, not more accessible.
Even if I remove the I/O of SubApplication, I don't succeed to remove it from my application.

I ask you, it is my error of "programming"?
Or, it is a problem of 4DIAC?

It seems me a loss of syncronization.
I use version 1.8M1 of 4DIAC.

I attach the result that is showed.

Best regards,
Michele Citro
  • Attachment: error2.png
    (Size: 257.77KB, Downloaded 67 times)
Re: Error in the use of SubApplication [message #1738677 is a reply to message #1738674] Fri, 22 July 2016 07:51 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 644
Registered: January 2014
Senior Member
Hi,

currently subapplications are unfortunately rather fragile. We started a major code-clean project to improve the situation. However this will not be available for the 1.8. Therefore I currently suggest to not use subapplications.

Alois
Re: Error in the use of SubApplication [message #1738679 is a reply to message #1738677] Fri, 22 July 2016 08:07 Go to previous messageGo to next message
Michele Citro is currently offline Michele CitroFriend
Messages: 29
Registered: June 2016
Junior Member
Hi,

thank you for the reply.

Ok, I will do in this way. Even if, without SubApplication is more difficult write all in the "Application page".

Can I change the version of 4DIAC?
For example, at the new 1.8RC1,1.8RC2,1.8RC3.

Regards,
Michele Citro
Re: Error in the use of SubApplication [message #1738699 is a reply to message #1738679] Fri, 22 July 2016 12:00 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 644
Registered: January 2014
Senior Member
Hi,

We know that subapplications are extremely important. However with the current model and code structure we where not able to fix the issues we have. Therefore better subapplication support was a key driver for us to do the major code clean-up we announced some time ago in our news. With 1.9 we expect to definitely have a more stable and better subapp support.

Yes you can alsways open your workspace /project with a newer version of 4DIAC. just download the latest 4diac and on startup select the workspace with your project. Or you can import your existing project into your workspace by selecting File->Import->Existing Project into workspace. In the wizard select your old workspace directory and then select the projects you like to import.

Furthermore you can also zip your projects and mail them arround or check them into a version control system. In 1.9 this should even get easier with less files.

Cheers,
Alois

Re: Error in the use of SubApplication [message #1738710 is a reply to message #1738699] Fri, 22 July 2016 13:00 Go to previous message
Michele Citro is currently offline Michele CitroFriend
Messages: 29
Registered: June 2016
Junior Member
Hi Alois,

thank you as always.
I understand perfectly.

Best regards,
Michele Citro
Previous Topic:Basic FB as Event Source
Next Topic:How calculate time scan softPLC
Goto Forum:
  


Current Time: Tue Oct 16 16:00:48 GMT 2018

Powered by FUDForum. Page generated in 0.01993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top