Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Attach console at program startup (http://www.chiefdelphi.com/forums/showthread.php?t=71856)

virtuald 01-10-2009 09:45 PM

Attach console at program startup
 
One of the most annoying things I've ran into so far is that while there is an ability to attach a console to the program at startup (automatically), the stupid thing only attaches to the first task which of *course* magically disappears immediately because it launches another task.

Anyone know a good way to accomplish this (I already know how to start the console manually, thats annoying)? You can't just not launch another task, since it says that:

Quote:

* This function starts the robot code running by spawning a task. Currently tasks seemed to be
* started by LVRT without setting the VX_FP_TASK flag so floating point context is not saved on
* interrupts. Therefore the program experiences hard to debug and unpredictable results. So the
* LVRT code starts this function, and it, in turn, starts the actual user program.
I'm wondering if maybe I can just pass stdout to the next task, and hope the console doesn't die with the task. Of course, I don't actually have a robot to test with at the moment..

BradAMiller 01-11-2009 09:44 AM

Re: Attach console at program startup
 
Try right-clicking on the system in the Remote Systems tab. Then select "Target Tools" and "Target Console". This will show all output from all tasks. You have to recreate it if the system is rebooted, but that won't normally happen during routine debugging.

virtuald 01-11-2009 11:05 AM

Re: Attach console at program startup
 
Yes, I know how to start it manually. The problem I have with that particular console is that it starts a new window, whereas the one that you can start automatically becomes a tab in WindRiver (which is far more convenient on a laptop). If I could just convince that console to go to a tab..


All times are GMT -5. The time now is 10:35 AM.

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