closing a datamodule in a packages

closing a datamodule in a packages

Post by josefari » Thu, 13 Nov 2003 01:03:16


I have a package with a form that load a datamodule everithing runs well but when i try to close all, first i close the datamodule with datamodule.free then i close the form, but i always receive an memory error, does anyone how to resolve this issue????
 
 
 

closing a datamodule in a packages

Post by Sdaa » Fri, 14 Nov 2003 22:38:10

and without ' datamodule.free ' ?


XXXX@XXXXX.COM ...
but when i try to close all, first i close the datamodule with
datamodule.free then i close the form, but i always receive an memory error,
does anyone how to resolve this issue????

 
 
 

closing a datamodule in a packages

Post by Jan Oostin » Mon, 17 Nov 2003 06:15:34


Are you sure you 'own' the datamodule ? If the datamodule is created
with something like Application.CreateForm, The application will still
have a reference to the datamodule after you free it, and will get a
memory error when the application tries to free it during shutdown.

Jan