I mean, that Register method not called when I load package.
Main Topics
Browse All TopicsI'd like create come data modules, when load plugin bpl library and free them on unloadlibrary.
Such as auto creating methods in dpr files;
I'm trying put them in Register, Unregister methods, but they never call.
. . .
procedure Register;
begin
Application.CreateForm(TFi
Application.CreateForm(TFi
end;
procedure UnRegister;
begin
FinDM.free;
FinRDM.free;
end;
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Heres a little bit of code you can modify im sure to get what you want out of it...
{-------------------------
Button1Click event:
var
ItemInq : TForm;
frmCls : TFormClass;
AClass : TPersistentClass;
wndHnd : HModule;
begin
wndHnd := 0;
wndHnd := LoadPackage('TestPack.bpl'
if wndHnd > 0 then
begin
AClass := Classes.GetClass('TAboutBo
frmCls := TFormClass(AClass);
if Assigned(frmCls) then
begin
ItemInq := frmCls.Create(Application)
ItemInq.ShowModal;
ItemInq.Free;
end;
end;
UnloadPackage(wndHnd);
end;
{-------------------------
I know its a lazy cut and paste, but you can see exacly how to load unload packages here. and how to use objects from it too.
Kristian.
Business Accounts
Answer for Membership
by: dvkPosted on 2002-09-05 at 03:24:40ID: 7264102
I havent used packages but will the following not work.
); ;
procedure Register;
begin
FinRDM := TFinRDM.Create(Application
FinDM := TFinDM.Create(Application)
end;
procedure UnRegister;
begin
FinDM.free;
FinRDM.free;
end;