我有一个问题需要解决,涉及到以下代码:
在运行时,我在调试时遇到了问题,它在CreateProcess方法上崩溃,并显示以下错误信息:"Unhandled exception at 0x7c82f29c in Tests.exe: 0xC0000005: Access violation writing location 0x00415760." 这是什么意思?
int main(int argc, char **argv) {
PROCESS_INFORMATION pi;
STARTUPINFO si;
printf("Process %d reporting for duty\n",GetCurrentProcessId());
GetStartupInfo(&si);
CreateProcess(NULL,"notepad.exe", NULL,NULL,FALSE,DETACHED_PROCESS, NULL,NULL, &si, &pi);
printf("New Process ID: %d\n",pi.dwProcessId);
return(0);
}
在运行时,我在调试时遇到了问题,它在CreateProcess方法上崩溃,并显示以下错误信息:"Unhandled exception at 0x7c82f29c in Tests.exe: 0xC0000005: Access violation writing location 0x00415760." 这是什么意思?