Einzelnen Beitrag anzeigen

Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#4

Re: GetModuleHandle gibt zurück - FreeLibrary schlägt fehl

  Alt 30. Jul 2006, 11:37
verdammt... die AV kommt tatsächlich bei DeInit Blöder Debugger.

Ich werd das mal durchschauen...

EDIT: Ok... bescheuert, das...

Delphi-Quellcode:
procedure DeInit; stdcall;
begin
  if (Assigned(mf)) and (mf is TObject) then
    begin
      mf.Close;
      mf.Free;
    end;
end;
Wenn ich die Form schließe, wird sie freigegeben... Und die VCL nillt natürlich den Pointer nicht. Was mich wundert ist, dass "mf is TObject" erfolgreich ist.
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat