JustinWang
Programmer
Hi All,
I am using eMbedded VC++ 3.0 all I am trying to do is create a program that Selects a program and exits gracefully. I use CreateProcess() to start my programs. The appear to start normally.
Both programs appear to work, but my first program is having issues. When I open Program1 using my StarterApp it behaves incorrectly, if I just double click on the executable, Program1 works just fine. Program2 works well either way. For some reason unbeknownst to me the multithreaded readCom() functions start acting fishy.
This behaviour leads me to believe that there is a problem with my exit code. I have tried EndDialog() and DestroyWindow() methods. I have a while(!shutdown) loop that runs and exiting that also does not seem to help. Other than that it is a pretty simple program.
Has anyone ever heard of this?
Justin
I am using eMbedded VC++ 3.0 all I am trying to do is create a program that Selects a program and exits gracefully. I use CreateProcess() to start my programs. The appear to start normally.
Both programs appear to work, but my first program is having issues. When I open Program1 using my StarterApp it behaves incorrectly, if I just double click on the executable, Program1 works just fine. Program2 works well either way. For some reason unbeknownst to me the multithreaded readCom() functions start acting fishy.
This behaviour leads me to believe that there is a problem with my exit code. I have tried EndDialog() and DestroyWindow() methods. I have a while(!shutdown) loop that runs and exiting that also does not seem to help. Other than that it is a pretty simple program.
Has anyone ever heard of this?
Justin