Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exiting Dialog

Status
Not open for further replies.

JustinWang

Programmer
Jul 25, 2006
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top