Problem with killing a process
-
Please help!! When I stop my application (appl1.exe), the process appl1.exe is not killed. Bellow is the loop that causes this problem. for(;;){ Sleep(100);//pour alléger le CPU DoEvents(); if (Playing==FALSE) { Playing=TRUE; break; } //end if }// end for where: void DoEvents(void) { MSG msg; while(PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } } Thank you very much in advance. Zakaria azakaria_2000@voila.fr
-
Please help!! When I stop my application (appl1.exe), the process appl1.exe is not killed. Bellow is the loop that causes this problem. for(;;){ Sleep(100);//pour alléger le CPU DoEvents(); if (Playing==FALSE) { Playing=TRUE; break; } //end if }// end for where: void DoEvents(void) { MSG msg; while(PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } } Thank you very much in advance. Zakaria azakaria_2000@voila.fr
Have you initialised and set Playing correctly? If it isn't set to FALSE, then the for loop will never break.
-
Have you initialised and set Playing correctly? If it isn't set to FALSE, then the for loop will never break.