Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   WindRiver Debug Mode question (http://www.chiefdelphi.com/forums/showthread.php?t=126173)

nollchr 10-02-2014 10:51

WindRiver Debug Mode question
 
Wondering if it is normal to need to reboot the CRIO each time after "Terminating" our robot code? During normal debugging, after we terminate our code and recompile, the new code will only run if we reboot the CRIO prior to starting a new debug session. V3.3 of Workbnech.

Thanks in advance.

Chris.

wireties 10-02-2014 14:21

Re: WindRiver Debug Mode question
 
It is "in theory" possible to simply reload your code and run it again. In practice you need to run cleanly (not screw up memory anywhere) and shut the code down cleanly (destroy all your WPI classes etc). Plus VxWorks (the cRIOs operating systems) does not clean up after your code the way a Windoze or Linux process would. VxWorks reaps the task control block and your stacks but nothing else.

In the "real world", my experience is that most people DO reboot the machine before starting a debugging session with new code. In this sort of environment, the code is written to run forever. Most developers do not take the time to make sure their code can be loaded, run, stopped then unloaded cleanly just to support the debugging environment.

HTH

nollchr 10-02-2014 16:12

Re: WindRiver Debug Mode question
 
Quote:

Originally Posted by wireties (Post 1340705)
It is "in theory" possible to simply reload your code and run it again. In practice you need to run cleanly (not screw up memory anywhere) and shut the code down cleanly (destroy all your WPI classes etc). Plus VxWorks (the cRIOs operating systems) does not clean up after your code the way a Windoze or Linux process would. VxWorks reaps the task control block and your stacks but nothing else.

In the "real world", my experience is that most people DO reboot the machine before starting a debugging session with new code. In this sort of environment, the code is written to run forever. Most developers do not take the time to make sure their code can be loaded, run, stopped then unloaded cleanly just to support the debugging environment.

HTH

That is what I figured. Thanks for the response!


All times are GMT -5. The time now is 12:48.

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