June 01, 2020, 06:25:06 pm

News:

SMF - Just Installed!


Storage Library components

Started by mm@FAI, February 01, 2019, 04:53:25 pm

Previous topic - Next topic

mm@FAI

hi

I am looking for some assistance in understanding a problem I am facing with the TrsPropSaver component.

I am working on a Delphi upgrade from Delphi 7 to Delphi 10.2. I have upgraded to the Storage Library component suite v4.01.

My application is an exe launching a dll for some processing. The exe has 2 forms and a datamodule. I have 2 each of TrsPropSaver , TrsStorage & TrsXMLData components in the datamodule. I have 1 TrsPropSaver component dropped on the form. The TrsPropSaver from the form points to one of the TrsStorage components in the datamodule. When the application terminates, the TrsPropSaver from the form gives an access violation. If I remove the component from the form, there is no AV.

This same application works fine in the Delphi 7 version.

Any suggestions as to what might be causing this issue. Any properties need to be set or methods to be called to allow the application to terminate gracefully.

thank you,
mm@FAI


Roman Novgorodov

Hello

Please see Andrey's reply below:
---------------------------------------------------------------------
I  think this happen because datamodule was destroyed before form with
TrsPropSaver.  Try to manage this. Or try to clean link to storage at
FormClose,FormDestroy.
rsPropSaver.Storage := nil;
---------------------------------------------------------------------

Andrei Roofin
DeepSoftware llc

DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

Blasko

Hi Roman, what does clean link to storage do exactly?

Roman Novgorodov

Hello

You can take a look Storage Demo projects for learn more.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.