Fórum Unload DLL #199352
05/12/2003
0
Tenho uma aplicação que utiliza uma DLL com um Data module, e sempre que crio o DM ela nunca é descarregada de memória quando minha aplicação é finalizada!!!
Não sei mais o que faço!! Ja tentei o UnloadDLL.. DM.Free dentro da DLL
Não sei mais o que faço!! Ja tentei o UnloadDLL.. DM.Free dentro da DLL
_||bern||_
Curtir tópico
+ 0
Responder
Posts
06/12/2003
Edilcimar
já tentou release?
Responder
Gostei + 0
07/12/2003
Ljr
Pesquisando na net vi este codigo. Retirei do site: [url]http://lib.seven.com.br/ampliar.asp?codcat=1&codartigo=571[/url]
site muito bom!!
site muito bom!!
function KillDll(aDllName: string): Boolean; var hDLL: THandle; aName: array[0..10] of char; FoundDLL: Boolean; begin StrPCopy(aName, aDllName); FoundDLL := False; repeat hDLL := GetModuleHandle(aName); if hDLL = 0 then Break; FoundDLL := True; FreeLibrary(hDLL); until False; if FoundDLL then MessageDlg(´Success!´, mtInformation, [mbOK], 0) else MessageDlg(´DLL not found!´, mtInformation, [mbOK], 0); end;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)