2010-04-09 5 views
0

C++ Builder 2010 프로젝트에서 EAccessViolation Exception보다 낮아지고 있습니다.
StackTrace에 내 프로젝트 파일이 표시되지 않습니다. 오류의 위치는 어떻게 찾을 수 있습니까? 이 응용 프로그램은 TIdTCPServer 구성 요소를 사용합니다.이 C++ Builder 2010 스택 추적에서 손실되었습니다

 
Call Stack Information: 
----------------------------------------------------------------------------------------------------- 
|Address |Module  |Unit     |Class   |Procedure/Method   |Line  | 
----------------------------------------------------------------------------------------------------- 
|*Exception Thread: ID=44100; Priority=0; Class=TIdThreadWithTask         | 
|---------------------------------------------------------------------------------------------------| 
|004E17AC|Desktop.exe |System.pas    |TObject  |Free      |9458[2] | 
|004E226E|Desktop.exe |System.pas    |    |_HandleFinallyInternal  |11939[16]| 
|7D4D936A|kernel32.dll|      |    |MultiByteToWideChar  |   | 
|7D4DCD06|kernel32.dll|      |    |VirtualQueryEx    |   | 
|7D4D920B|kernel32.dll|      |    |MultiByteToWideChar  |   | 
|004E7034|Desktop.exe |System.pas    |    |Utf8ToUnicode    |22264[5] | 
|004E0601|Desktop.exe |System.pas    |    |_ReallocMem    |3097[9] | 
|004E05F4|Desktop.exe |System.pas    |    |_ReallocMem    |3089[1] | 
|004E4129|Desktop.exe |System.pas    |    |_UStrSetLength    |17365[37]| 
|004E3D5C|Desktop.exe |System.pas    |    |_UStrAsg     |16893[1] | 
|004E737F|Desktop.exe |System.pas    |    |UTF8ToUnicodeString  |22433[11]| 
|004E3D4C|Desktop.exe |System.pas    |    |_UStrClr     |16849[1] | 
|004E7394|Desktop.exe |System.pas    |    |UTF8ToUnicodeString  |22434[12]| 
|004E1FBA|Desktop.exe |System.pas    |    |_HandleAnyException  |11315[84]| 
|7D4D936A|kernel32.dll|      |    |MultiByteToWideChar  |   | 
|004E05E0|Desktop.exe |System.pas    |    |_FreeMem     |3030[6] | 
|004E05DC|Desktop.exe |System.pas    |    |_FreeMem     |3025[1] | 
|004E2AB4|Desktop.exe |System.pas    |    |_LStrClr     |13683[12]| 
|004E2A98|Desktop.exe |System.pas    |    |_LStrClr     |13672[1] | 
|004E3EBD|Desktop.exe |System.pas    |    |_UStrFromPWCharLen   |17101[28]| 
|7D620341|ntdll.dll |      |    |RtlNtStatusToDosErrorNoTeb |   | 
|7D62031F|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D620324|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D620341|ntdll.dll |      |    |RtlNtStatusToDosErrorNoTeb |   | 
|7D62031F|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D620324|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D4DCCEF|kernel32.dll|      |    |VirtualQueryEx    |   | 
|7D4DCCE1|kernel32.dll|      |    |VirtualQuery    |   | 
|004E1FBA|Desktop.exe |System.pas    |    |_HandleAnyException  |11315[84]| 
|7D61EA51|ntdll.dll |      |    |KiUserExceptionDispatcher |   | 
|004E21F6|Desktop.exe |System.pas    |    |_HandleFinally    |11872[39]| 
|7D61F1D7|ntdll.dll |      |    |RtlLeaveCriticalSection |   | 
|7D6251EB|ntdll.dll |      |    |LdrUnlockLoaderLock  |   | 
|7D6251F2|ntdll.dll |      |    |LdrUnlockLoaderLock  |   | 
|7D4D936A|kernel32.dll|      |    |MultiByteToWideChar  |   | 
|7D4DCD06|kernel32.dll|      |    |VirtualQueryEx    |   | 
|7D4D920B|kernel32.dll|      |    |MultiByteToWideChar  |   | 
|004E7034|Desktop.exe |System.pas    |    |Utf8ToUnicode    |22264[5] | 
|004E0601|Desktop.exe |System.pas    |    |_ReallocMem    |3097[9] | 
|004E05F4|Desktop.exe |System.pas    |    |_ReallocMem    |3089[1] | 
|004E4129|Desktop.exe |System.pas    |    |_UStrSetLength    |17365[37]| 
|004E3D5C|Desktop.exe |System.pas    |    |_UStrAsg     |16893[1] | 
|004E737F|Desktop.exe |System.pas    |    |UTF8ToUnicodeString  |22433[11]| 
|004E3D4C|Desktop.exe |System.pas    |    |_UStrClr     |16849[1] | 
|004E7394|Desktop.exe |System.pas    |    |UTF8ToUnicodeString  |22434[12]| 
|004E1FBA|Desktop.exe |System.pas    |    |_HandleAnyException  |11315[84]| 
|7D4D936A|kernel32.dll|      |    |MultiByteToWideChar  |   | 
|004E05E0|Desktop.exe |System.pas    |    |_FreeMem     |3030[6] | 
|004E05DC|Desktop.exe |System.pas    |    |_FreeMem     |3025[1] | 
|004E2AB4|Desktop.exe |System.pas    |    |_LStrClr     |13683[12]| 
|004E2A98|Desktop.exe |System.pas    |    |_LStrClr     |13672[1] | 
|004E3EBD|Desktop.exe |System.pas    |    |_UStrFromPWCharLen   |17101[28]| 
|7D620341|ntdll.dll |      |    |RtlNtStatusToDosErrorNoTeb |   | 
|7D62031F|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D620324|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D620341|ntdll.dll |      |    |RtlNtStatusToDosErrorNoTeb |   | 
|7D62031F|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D620324|ntdll.dll |      |    |RtlNtStatusToDosError  |   | 
|7D4DCCEF|kernel32.dll|      |    |VirtualQueryEx    |   | 
|7D4DCCE1|kernel32.dll|      |    |VirtualQuery    |   | 
|7D61F1D7|ntdll.dll |      |    |RtlLeaveCriticalSection |   | 
|004E1FBA|Desktop.exe |System.pas    |    |_HandleAnyException  |11315[84]| 
|7D61EA51|ntdll.dll |      |    |KiUserExceptionDispatcher |   | 
|004B120E|Desktop.exe |Classes.pas    |    |ThreadProc     |11018[8] | 
|004E2A0C|Desktop.exe |System.pas    |    |ThreadWrapper    |13579[33]| 
|---------------------------------------------------------------------------------------------------| 
|Calling Thread: ID=68288; Priority=2; Class=TIdListenerThread          | 
|---------------------------------------------------------------------------------------------------| 
|004B1ED0|Desktop.exe |Classes.pas    |TThread  |Resume      |11558[1] | 
|004B1EC8|Desktop.exe |Classes.pas    |TThread  |Resume      |11557[0] | 
|004B120E|Desktop.exe |Classes.pas    |    |ThreadProc     |11018[8] | 
|004E2A0C|Desktop.exe |System.pas    |    |ThreadWrapper    |13579[33]| 
|---------------------------------------------------------------------------------------------------| 
|                         | 

답변

0

손상된 메모리 또는 포인터 여야합니다. 이것은 디버깅하기가 쉽지 않을 것이므로, 사용중인 모든 포인터가 올바른 값을 가지고 있고 어디서든 벗어날 수 있는지 확인해야합니다.

0

다운로드에서 FASTMM의 최신 버전 : http://sourceforge.net/projects/fastmm/files/FastMM%204.x%20Stable%20Releases/

C에서 그 설치 ++ 빌더.
FastMM에서 디버그 모드를 설정하는 방법에 대한 설명서를 읽으십시오.
포인터를 달거나 금기 위치에 기록하는 경우 FastMM에서 포인터를 매우 빨리 찾아야합니다.

행운을 비네.

(FASTMM 의 간단한 버전이 포함되어 있지만이 버전이 훨씬 더 깊이 이동합니다)

관련 문제