Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEncrypting and decrypting objects Pin
Vassilis Papoulidis9-Aug-03 6:51
Vassilis Papoulidis9-Aug-03 6:51 
GeneralRe: Encrypting and decrypting objects Pin
Michael Dunn9-Aug-03 7:49
sitebuilderMichael Dunn9-Aug-03 7:49 
QuestionDocking toolbars / windows without mfc? Pin
gri9-Aug-03 5:05
gri9-Aug-03 5:05 
Generalvideo stream Pin
mr pier9-Aug-03 3:34
mr pier9-Aug-03 3:34 
Generaltrouble in ATL Pin
novachen9-Aug-03 3:07
novachen9-Aug-03 3:07 
GeneralRe: trouble in ATL Pin
Michael Dunn9-Aug-03 6:31
sitebuilderMichael Dunn9-Aug-03 6:31 
GeneralRe: trouble in ATL Pin
novachen9-Aug-03 17:07
novachen9-Aug-03 17:07 
GeneralRe: trouble in ATL Pin
Michael Dunn9-Aug-03 17:22
sitebuilderMichael Dunn9-Aug-03 17:22 
GeneralRe: trouble in ATL Pin
novachen9-Aug-03 22:33
novachen9-Aug-03 22:33 
GeneralProblem in RiechEdit..!! Pin
boonshajayan9-Aug-03 1:37
boonshajayan9-Aug-03 1:37 
QuestionHow to delete my temporary file? Pin
HansonDavid9-Aug-03 1:00
HansonDavid9-Aug-03 1:00 
AnswerRe: How to delete my temporary file? Pin
HansonDavid9-Aug-03 1:16
HansonDavid9-Aug-03 1:16 
GeneralRe: How to delete my temporary file? Pin
igor196011-Aug-03 19:24
igor196011-Aug-03 19:24 
AnswerRe: How to delete my temporary file? Pin
boonshajayan9-Aug-03 1:32
boonshajayan9-Aug-03 1:32 
AnswerRe: How to delete my temporary file? Pin
PJ Arends9-Aug-03 5:38
professionalPJ Arends9-Aug-03 5:38 
GeneralRe: How to delete my temporary file? Pin
HansonDavid10-Aug-03 0:32
HansonDavid10-Aug-03 0:32 
QuestionWhat is different from DLL, Static Lib, Dynamic Lib Pin
HansonDavid9-Aug-03 0:49
HansonDavid9-Aug-03 0:49 
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

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.