Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » FORTE terminate when pressing "Launch local FORTE"(Error when launching FORTE)
FORTE terminate when pressing "Launch local FORTE" [message #1737828] |
Wed, 13 July 2016 06:38  |
Eclipse User |
|
|
|
Good morning,
I'm using the environment 4DIAC for 3 months.
I'm developping an application for an automatic warehouse.
Today, after some day of normal use, in deployment of application FORTE ends as soon as I press the botton "Launch local forte". While FBRT work correctly.
I create forte.exe with Visual Studio Express, and it's in the correct folder /bin/win32/src/Release
I tried to unistall and install both FORTE then 4DIAC, but the problem persists.
What could be the problem?
Thank you.
Best regards,
Michele CItro
|
|
| | | | | |
Re: FORTE terminate when pressing "Launch local FORTE" [message #1737910 is a reply to message #1737873] |
Thu, 14 July 2016 02:00   |
Eclipse User |
|
|
|
Good morning,
no, I don't remember to have edited manually the cpp code. But I will verify this possibility.
At the same time, FORTE crash already of the download before, when I push button "Launch local FORTE". Next, pushing the button Download, there is the right problem of connection refused.
Using the new version of FORTE (RC2), I have the same problem, the same exactly.
But, I haven't tried yet with the new version of 4DIAC.
Thank you all,
Michele CItro
|
|
| | | | | |
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738233 is a reply to message #1738152] |
Mon, 18 July 2016 06:15   |
Eclipse User |
|
|
|
Hi, I checked your code.
1. I noted that you wrote your own code in FB. Did you export the FB using 4DIAC and then wrote your implementation?
2. I noticed also that in your FB you use functions of a library of cifX, I suppose is related to a special communciation card in your computer, right?
Regarding this, normally you don't use Basic Functional Blocks for communication matter, but the Services Functional Block. This is related to the 61499 standard (Alois could tell better which rules are being broken or not), but in any case, FORTE shouldn't terminate because of that.
Since I don't have the library, I couldn't test your situation properly. What I did was to replace all the calls to your specific library with dummies implementation that do nothing. I compiled and ran FORTE and it didn't terminate.
Now, going back to debugging. Could you give more details of where exactly did you put your breakpoint? If you put it where the image above shows, the program should stop there. Did it stop there or terminated before even getting there?
Regards,
Jose Cabral
|
|
| |
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738350 is a reply to message #1738225] |
Tue, 19 July 2016 04:29   |
Eclipse User |
|
|
|
Kirill Dorofeev wrote on Mon, 18 July 2016 09:18Hi Michele,
your FB cpp code looks like it was edited manually after exporting FB from 4diac. For example, in your fbt file both INIT and REQ algorithms are empty, whereas in cpp alg_INIT is non-empty. I exported your FB, compiled forte and it runs smoothly. See attached generated cpp and h files. So the problem is probably somewhere in your code, you've added.
Best regards,
Kirill
Hi Kirill,
thank you for the answer.
Yes, the FB it was edited manually after exporting FB from 4diac.
It worked always, but no now.
I know that the problem is in my own code,but I don't understand where.
Best regards,
Michele
|
|
|
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738351 is a reply to message #1738233] |
Tue, 19 July 2016 04:51   |
Eclipse User |
|
|
|
Jose Maria Jesus Cabral Lassalle wrote on Mon, 18 July 2016 10:15Hi, I checked your code.
1. I noted that you wrote your own code in FB. Did you export the FB using 4DIAC and then wrote your implementation?
2. I noticed also that in your FB you use functions of a library of cifX, I suppose is related to a special communciation card in your computer, right?
Regarding this, normally you don't use Basic Functional Blocks for communication matter, but the Services Functional Block. This is related to the 61499 standard (Alois could tell better which rules are being broken or not), but in any case, FORTE shouldn't terminate because of that.
Since I don't have the library, I couldn't test your situation properly. What I did was to replace all the calls to your specific library with dummies implementation that do nothing. I compiled and ran FORTE and it didn't terminate.
Now, going back to debugging. Could you give more details of where exactly did you put your breakpoint? If you put it where the image above shows, the program should stop there. Did it stop there or terminated before even getting there?
Regards,
Jose Cabral
Hi,
thank you for the answer.
I ask to you questions,
1. Yes, it's correct. But I remember that I putted them(.cpp and .h) in my directory without export. This because, I didn't write the code, but I received it for start the project. So, I don't know much about it.
2. Right, cifX allows me to comunicate with automation warehouse althrought through the computer.
Instead, going back to debugging,
I attach the result.
I have selected the debug mode, put the breakpoint in my .cpp, but the debug don't stop there, but it push ahead and it do a final error (seems after the compile).
Thank you so much.
Best regards,
Michele
|
|
| | |
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738600 is a reply to message #1738381] |
Thu, 21 July 2016 04:55  |
Eclipse User |
|
|
|
Hi,
thank you both.
I did some experiments, how you suggested.
In particular, I debbugged how told here:
Jose Maria Jesus Cabral Lassalle wrote on Tue, 19 July 2016 11:05
I'm not sure exactly how VS manages this, but the error you get seems to be because is not openning the right forte.exe file. Try debugging like is shown in the picture in this message.
In this way, VS indicated un error in a .dll that I use (cifX).
So, I have re-installed cifX driver and it works.
Thank you to help me to try the problem.
Thank you really.
Regards,
Michele Citro
|
|
|
Goto Forum:
Current Time: Wed Jul 23 19:27:58 EDT 2025
Powered by FUDForum. Page generated in 0.06969 seconds
|