Einzelnen Beitrag anzeigen

iphi

Registriert seit: 13. Feb 2009
262 Beiträge
 
Delphi 7 Personal
 
#3

AW: access violation in Menus.SetWindowHandle

  Alt 9. Dez 2017, 13:00
Zitat:
Wie genau sieht denn die Fehlermeldung aus?
Code:
---------------------------
Debugger Exception Notification
---------------------------
Project VNWA.exe raised exception class EAccessViolation with message 'Access violation at address 00494646 in module 'VNWA.exe'. Write of address 00000038'. Process stopped. Use Step or Run to continue.
Zitat:
oder notfalls intern Bugfixen if Assigned(Self) then Exit;
Das habe ich probiert, aber es hilft nicht, weil der Bug anscheinend gar nicht da auftritt, sondern schon viel früher! Wie ich jetzt mittels Breakpoints und Einzelschritt gemerkt habe, ist an dieser Stelle der Debugger schon völlig aus dem Tritt, d.h. er springt z.B. auf leere Codezeilen, und das bereits bevor die Access Violation ausgelöst wird. Der Speicher ist also schon korrupt.

Zitat:
Und den Stacktrace kennst du?
Du meinst den Call-Stack!?
Der ist hier:
Code:
 
TMenu.SetWindowHandle(0)
TCustomForm.WMDestroy((2, (0, 0, 0, 0), 0))
TControl.WndProc((2, 0, 0, 0, 0, 0, 0, 0, 0, 0))
TWinControl.WndProc((2, 0, 0, 0, 0, 0, 0, 0, 0, 0))
TCustomForm.WndProc((2, 0, 0, 0, 0, 0, 0, 0, 0, 0))
TWinControl.MainWndProc((2, 0, 0, 0, 0, 0, 0, 0, 0, 0))
StdWndProc(791598,2,0,0)
TCustomForm.DestroyWindowHandle
TCustomForm.Destroy
TComponent.DestroyComponents
DoneApplication
DoExitProc
@Halt0
VNWA
Was kann ich daraus ablesen?

Geändert von iphi ( 9. Dez 2017 um 13:08 Uhr)
  Mit Zitat antworten Zitat