Home > Back-end >  Delphi call DLL form
Delphi call DLL form

Time:09-18

Procedure ShowDllFormInPanel (Parent: THandle); Stdcall;
The begin
Application. Handle:=the Parent;
If Form1=nil then
Form1:=TForm1. Create (Application);
Form1. ParentWindow:=the Parent;//sets the container to the parent window
Form1. BorderStyle:=bsNone;
Form1. Align:=alClient;

Form1. Show;
end;

This is DLL form displays in the main form of panle to code, display is no problem, but after click the show and then shut down, the fourth time in an access violation at address XXXXXXXX in the module should be the problem of no release, but don't know where is not released, forget temporarily suspended

CodePudding user response:

Who founded release, closed form1 should free?
  • Related