Click here to Skip to main content
15,905,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is different from DLL, Static Lib, Dynamic Lib Pin
valikac9-Aug-03 4:23
valikac9-Aug-03 4:23 
GeneralRe: What is different from DLL, Static Lib, Dynamic Lib Pin
HansonDavid10-Aug-03 0:28
HansonDavid10-Aug-03 0:28 
GeneralRe: What is different from DLL, Static Lib, Dynamic Lib Pin
valikac10-Aug-03 6:25
valikac10-Aug-03 6:25 
GeneralRe: What is different from DLL, Static Lib, Dynamic Lib Pin
HansonDavid10-Aug-03 18:24
HansonDavid10-Aug-03 18:24 
GeneralHandling Events Pin
cberam9-Aug-03 0:17
cberam9-Aug-03 0:17 
GeneralRe: Handling Events Pin
Giles9-Aug-03 1:23
Giles9-Aug-03 1:23 
GeneralRe: Handling Events Pin
cberam11-Aug-03 2:00
cberam11-Aug-03 2:00 
GeneralCreate Process + WaitForSingleObject hangs Pin
Member 4048138-Aug-03 23:59
Member 4048138-Aug-03 23:59 
Hi,
I have a problem with WaitForSingleObject. my code are as follows
int RunExternalProES(LPTSTR ExecProc, int option)
{

STARTUPINFO si;
PROCESS_INFORMATION pi;
DWORD pProcessID;

ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );

// Start the child process.
if( !CreateProcess(NULL, // No module name (use command line).
ExecProc, // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
TRUE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
{
return FALSE;
//( "CreateProcess failed." );
}

if (option == 1) {
WaitForSingleObject(pi.hProcess, INFINITE);
}
}

i found that sometime waitforsingleobject function will hang for some process.. is there any reson why this happens?

Thanks
GeneralRe: Create Process + WaitForSingleObject hangs Pin
valikac9-Aug-03 4:29
valikac9-Aug-03 4:29 
GeneralRe: Create Process + WaitForSingleObject hangs Pin
Ryan Binns9-Aug-03 4:36
Ryan Binns9-Aug-03 4:36 
GeneralVectors Pin
lano18-Aug-03 23:43
lano18-Aug-03 23:43 
GeneralRe: Vectors Pin
Anonymous9-Aug-03 0:26
Anonymous9-Aug-03 0:26 
GeneralRe: Vectors Pin
Beer269-Aug-03 3:29
Beer269-Aug-03 3:29 
GeneralRe: Vectors Pin
Nitron9-Aug-03 4:23
Nitron9-Aug-03 4:23 
Questionread chunks?? Pin
ariez8-Aug-03 23:41
ariez8-Aug-03 23:41 
AnswerRe: read chunks?? Pin
JWood10-Aug-03 4:27
JWood10-Aug-03 4:27 
QuestionHow to flash a window in the taskbar? Pin
Florin Ochiana8-Aug-03 23:26
Florin Ochiana8-Aug-03 23:26 
AnswerRe: How to flash a window in the taskbar? Pin
Nish Nishant8-Aug-03 23:48
sitebuilderNish Nishant8-Aug-03 23:48 
GeneralRe: How to flash a window in the taskbar? Pin
chen shi24-Aug-10 4:11
chen shi24-Aug-10 4:11 
GeneralRe: How to flash a window in the taskbar? Pin
Nish Nishant24-Aug-10 4:16
sitebuilderNish Nishant24-Aug-10 4:16 
AnswerRe: How to flash a window in the taskbar? Pin
User 66589-Aug-03 0:19
User 66589-Aug-03 0:19 
GeneralMemory problem with WorkerThread Pin
Chintan8-Aug-03 23:11
Chintan8-Aug-03 23:11 
GeneralRe: Memory problem with WorkerThread Pin
valikac9-Aug-03 4:32
valikac9-Aug-03 4:32 
GeneralRe: Memory problem with WorkerThread Pin
Chintan10-Aug-03 22:45
Chintan10-Aug-03 22:45 
GeneralCapturing Windows Events Pin
bob_brown_20008-Aug-03 21:57
bob_brown_20008-Aug-03 21:57 

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.