How to reset running program? [message #1749361] |
Mon, 05 December 2016 15:05  |
Eclipse User |
|
|
|
I have a simple test program, runs fine and terminates as far as I can tell.
But when I try to "run" it again I get a message " my program ( already running)".
About the only way I can restart it is to change something, than "Build All" , than I can do "Run" again.
int main( int argc, char* argv[])
{
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
int value = 50;
int value2 = 0;
// namedWindow("main1",WINDOW_AUTOSIZE | WINDOW_OPENGL);
namedWindow("main2",WINDOW_OPENGL);
namedWindow("main3",WINDOW_AUTOSIZE);
waitKey(0);
destroyAllWindows();
//help();
return (0);
}
|
|
|
|
|
Re: How to reset running program? [message #1749370 is a reply to message #1749366] |
Mon, 05 December 2016 16:59  |
Eclipse User |
|
|
|
Glad you made some progress.
Quote:My test program is designed to terminate / return when I press any key on keyboard.
OK, I guess you have identified an issue here. Is waitKey listening on stdin or on a key pressed in a window. If it is on stdin then you should note that the console view in Eclipse is a line-buffered console. Nothing is sent to the program until Enter is pressed.
|
|
|
Powered by
FUDForum. Page generated in 0.04924 seconds