Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Run Kernel Task w/o reboot (http://www.chiefdelphi.com/forums/showthread.php?t=71882)

byteit101 11-01-2009 09:13

Run Kernel Task w/o reboot
 
Can you D/R KT(debug/run Kernel task), and then modify the code, build, and then D/R KT again, WITHOUT rebooting the cRIO to stop the task?

BradAMiller 11-01-2009 09:25

Re: Run Kernel Task w/o reboot
 
Quote:

Originally Posted by byteit101 (Post 798439)
Can you D/R KT(debug/run Kernel task), and then modify the code, build, and then D/R KT again, WITHOUT rebooting the cRIO to stop the task?

Yes. Go to the Remote Systems window, right click on your program in the cRIO and delete it. There is code in the latest update that will kill all the tasks spawned by your program so it exists cleanly.

virtuald 11-01-2009 11:31

Re: Run Kernel Task w/o reboot
 
Quote:

Originally Posted by BradAMiller (Post 798447)
Yes. Go to the Remote Systems window, right click on your program in the cRIO and delete it. There is code in the latest update that will kill all the tasks spawned by your program so it exists cleanly.

And by this, he means search for (typically) YourProject.out and delete that. :)

comphappy 11-01-2009 14:34

Re: Run Kernel Task w/o reboot
 
You can see your program running in the debug window (the one above th break points) right click the top level and select terminate or terminate all. If you get a kernel crash from one of your programs you may want to reboot as reminates may get left behind, we wasted a long time on that.

BradAMiller 12-01-2009 12:08

Re: Run Kernel Task w/o reboot
 
Quote:

Originally Posted by virtuald (Post 798526)
And by this, he means search for (typically) YourProject.out and delete that. :)

Thanks for the clarification!

There is code in the library that is designed to cleanup properly when the main task is terminated. But the cRIO has no memory protection. So it is possible for a program with memory and pointer bugs to write all over anything else in the cRIO and cause it to be unstable. In those cases rebooting will guarantee that the new program run will work more correctly.


All times are GMT -5. The time now is 18:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi