Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#136 closed Aufgabe (fixed)

mm_CrtDbg

Reported by: Melanie Hermann Owned by: Melanie Hermann
Priority: kurzfristig Milestone:
Component: Diagnose Version:
Severity: Zu prüfen Keywords:
Cc:

Description (last modified by Melanie Hermann)

Nochmal alle Meldungen im mm_CrtDbg prüfen.
Zum Beispiel DlgService->CMD_BEENDEN.

Change History (4)

comment:1 by Melanie Hermann, 13 years ago

Description: modified (diff)

comment:2 by Melanie Hermann, 13 years ago

Ausgabe mm_CrtDbg:

\Program Files\gc\gc.exe(0) : error R0001: 'at exit': TID(040a006e) still 2 P_Handle in use by CreateProcess()!

.\DlgService.cpp(491) : error R0001: 'CDlgService::OnBnClickedAusfuehrenService': TID(040a006e) CloseHandle(0x01921e73,1) missing for this allocation, or two times allocated to same pointer.

\Program Files\gc\gc.exe(0) : assertion A0001: 'at exit': TID(040a006e) CloseHandle(0x01921e73,1) missing near here. See previous line for CreateProcess() location.

.\DlgService.cpp(491) : error R0001: 'CDlgService::OnBnClickedAusfuehrenService': TID(040a006e) CloseHandle(0x01911e73,1) missing for this allocation, or two times allocated to same pointer.

\Program Files\gc\gc.exe(0) : assertion A0001: 'at exit': TID(040a006e) CloseHandle(0x01911e73,1) missing near here. See previous line for CreateProcess() location.

comment:3 by Melanie Hermann, 13 years ago

Resolution: fixed
Status: newclosed

DlgService.cpp: 2 fehlende 'CloseHandle()' eingebaut

case CMD_BEENDEN:

PROCESS_INFORMATION piExplorer;
memset(&piExplorer, 0, sizeof PROCESS_INFORMATION);
exe = _tcsdup(TEXT("Explorer.exe"));
((CDialog *)GetParent())->EndDialog(0);
ret = CreateProcess (exe, NULL, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &piExplorer);
if (!ret){
Err = GetLastError();
}
else{
CloseHandle(piExplorer.hProcess);
CloseHandle(piExplorer.hThread);

}
Sleep(1000);
...
break;

comment:4 by Melanie Hermann, 13 years ago

\Program Files\gc\gc.exe(0) : 'at exit': TID(042c00be) Nothing to report for now.

Note: See TracTickets for help on using tickets.