02-22-2011 02:36 AM - edited 02-22-2011 02:37 AM
Hello everyone,
I've the program to do the following at the end of execution:
using the developer's suite I have no problem by exit, the program exit perfectly without staying in memory list.
After I build an exe and do the same to exit the exe program disappears from the task bar, however stays in the list of task management (Ctrl+Alt+Del).
In my program there's Network Streaming, CAN bus, and RS232.
How to exit the program completely without letting it stay in the memory?
Wilbur
Solved! Go to Solution.
02-22-2011 02:42 AM
Can you explain the logic behind your code, maybe attach a small code example?
What is in the other cases of the case structure?
02-22-2011 02:43 AM - edited 02-22-2011 02:43 AM
(sorry duplicated post)
02-22-2011 03:19 AM
You reopen a referrence and then crash/Exit LV if in development mode? I take it the Exit doesn't exist in Run time case - thus leaving a referrence alive.
Basically everything after FP.close and Close ref shouldn't be needed.
Personally i often use App.kind to not close FP when in development mode.
/Y
02-22-2011 03:24 AM - edited 02-22-2011 03:27 AM
Hi,
here is a dummy code from the whole project. I've constructed the as many different subVIs and at the end the error handle part.
And the "Dummy.vi" is in the same position of my main.vi, which is the caller of the "Simple error saver.vi".
I've tested that the code run till the "Simple error saver.vi" but it doesn't exit from memory.
By the way, I've used the dynamic call VI to catch the .net event in my program!
Wilbur
02-22-2011 03:31 AM
Hi Y,
I've disabled the rest things after FP.close but it appears the same.
Wilbur
02-22-2011 06:29 AM
02-22-2011 07:24 AM
We learn something every day, i didn't know about that. 🙂
/Y