Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loving Linux Pin
Jim Crafton18-Aug-04 16:07
Jim Crafton18-Aug-04 16:07 
GeneralRe: Loving Linux Pin
Henry miller19-Aug-04 3:37
Henry miller19-Aug-04 3:37 
GeneralSet Font for Windows Pin
Khanh Trinh17-Aug-04 7:33
Khanh Trinh17-Aug-04 7:33 
GeneralRe: Set Font for Windows Pin
David Crow17-Aug-04 9:29
David Crow17-Aug-04 9:29 
GeneralRe: Set Font for Windows Pin
Khanh Trinh17-Aug-04 19:01
Khanh Trinh17-Aug-04 19:01 
GeneralRe: Set Font for Windows Pin
David Crow18-Aug-04 5:29
David Crow18-Aug-04 5:29 
GeneralRe: Set Font for Windows Pin
Khanh Trinh18-Aug-04 7:01
Khanh Trinh18-Aug-04 7:01 
GeneralgetExitCodeProcess Pin
ns17-Aug-04 7:22
ns17-Aug-04 7:22 
I started an exe using createProcess and want to check on it:

while(1)
{

    LPDWORD lpExitCode;
    GetExitCodeProcess(ProcessInfo.hProcess, lpExitCode);
           etc
     }


I see in the debug that the hProcess isnt null (since my process started successfully). I was going to exit the process and see if I could detect it in my launching app. However, the code crashes at GetExitCodeProcess. I tried stepping into it, but it access violates immediately. What can I look into to see what is wrong?

As a workaround I am doing

while(  !   (WaitForSingleObject(ProcessInfo.hProcess,1) == WAIT_OBJECT_0))


but I am curious as to why the first call crashes.
thanks,
sb
GeneralRe: getExitCodeProcess Pin
David Crow17-Aug-04 9:31
David Crow17-Aug-04 9:31 
GeneralRe: getExitCodeProcess Pin
Ryan Binns17-Aug-04 19:20
Ryan Binns17-Aug-04 19:20 
Generalserial link question (COM port on pC) Pin
jetournier17-Aug-04 7:02
jetournier17-Aug-04 7:02 
GeneralRe: serial link question (COM port on pC) Pin
valikac17-Aug-04 7:33
valikac17-Aug-04 7:33 
GeneralNeed help CListCtrl Pin
Metatron_17-Aug-04 6:47
Metatron_17-Aug-04 6:47 
GeneralRe: Need help CListCtrl Pin
Ravi Bhavnani17-Aug-04 7:21
professionalRavi Bhavnani17-Aug-04 7:21 
GeneralSTL problem Pin
BeerBelly17-Aug-04 6:25
BeerBelly17-Aug-04 6:25 
GeneralRe: STL problem Pin
Jeff Bogan17-Aug-04 7:18
Jeff Bogan17-Aug-04 7:18 
GeneralRe: STL problem Pin
digwizfox17-Aug-04 12:59
digwizfox17-Aug-04 12:59 
GeneralRe: STL problem Pin
Ryan Binns17-Aug-04 19:28
Ryan Binns17-Aug-04 19:28 
GeneralRe: STL problem Pin
digwizfox17-Aug-04 7:43
digwizfox17-Aug-04 7:43 
GeneralRe: STL problem Pin
Jeff Bogan17-Aug-04 9:36
Jeff Bogan17-Aug-04 9:36 
GeneralRe: STL problem Pin
digwizfox17-Aug-04 12:51
digwizfox17-Aug-04 12:51 
GeneralRe: STL problem Pin
peterchen17-Aug-04 10:56
peterchen17-Aug-04 10:56 
GeneralRe: STL problem Pin
BeerBelly17-Aug-04 19:02
BeerBelly17-Aug-04 19:02 
QuestionHow to Start With C++? Pin
Dody_DK17-Aug-04 6:13
Dody_DK17-Aug-04 6:13 
AnswerRe: How to Start With C++? Pin
Watever_417-Aug-04 6:23
Watever_417-Aug-04 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.