Home > Software engineering >  Windows VC6 master process network problems
Windows VC6 master process network problems

Time:09-19

Windows under VC6 compile the two programs A and B, direct start B everything is normal, and through A createprocess B, then B network anomalies, who knows what's going on

CodePudding user response:

Personal guess:
Different way, to the town of stack space size is different, may cause the failure of using large stack space,

CodePudding user response:

Best post, you createprocess parameters

CodePudding user response:

B is to debug bai you wrote
Direct start and CreateProcess current directory STARTINFO what is different...

CodePudding user response:

refer to the second floor lwxtest0 response:
best posted, you the parameters of the createprocess


DwCreateFlags=CREATE_UNICODE_ENVIRONMENT;
STARTUPINFO si={0};
Si. Cb=sizeof (si);
Si. DwFlags=STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
Si. WShowWindow=SW_HIDE;
Si. HStdInput=hReadPipe;
Si. HStdOutput=pReqSock - & gt; M_hFile;
Si. HStdError=pReqSock - & gt; M_hFile;
CreateProcess (NULL, strCmdLine GetBuffer (1),
NULL, NULL, TRUE,
DwCreateFlags pEnv,
StrDir, & amp; Si, & amp; PI);

CodePudding user response:

The
reference 3 floor Jiang Sheng response:
B is you write debugging bai
Direct start and CreateProcess current directory STARTINFO what is different...


Have tried, no action, even feel different code execution order, at the back of the printing was first appeared

CodePudding user response:

Distribution, turn off the optimization try,

CodePudding user response:

You the problem of authority
  • Related