Board index » delphi » load package dynamicly - run-time
Asi
![]() Delphi Developer |
Sun, 04 Jul 2004 15:09:39 GMT
load package dynamicly - run-time
My project meed to load package dynamicly - run-time
I try to run the below code. It compile and run fine . But when i try to exit the application i get an error. Exception class EInvalidPointer with massage "Invalid pointer operator" The application ; Load dynamicly BPL procedure TForm1.Button3Click(Sender: TObject); PackageModule := LoadPackage('Pkg3.bpl'); AClass := GetClass('TFrm_Connection'); if AClass <> nil then UnloadPackage(PackageModule); end; in the BPL : in Form unit i add this code: initialization finalization end. |