|Anonymous | Login | Signup for a new account||2018-12-11 20:34 CET|
|Main | My View | View Issues | Change Log | Roadmap | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0003168||[JEDI VCL] 00 JVCL Components||minor||always||2005-08-27 09:06||2005-08-31 01:25|
|Summary||0003168: TJvCustomAppStorage (unit JvAppStorage) destructor always does a flush.|
Maybe I am missing something, but every AppStorage component does save all properties and data when the application is closed.
This is because in the TJvCustomAppStorage.Destroy method the Flush method is called.
Is this by design!?
I would have thought that this is what the AutoFlush property is for, when set to TRUE Flush is called on every change and on close; when set to FALSE the developer has to call Flush by himself.
I would suggest to change the first line of the destructor to the following code:
if FAutoFlush then Flush;
|Tags||No tags attached.|
Yes, this is by design, for historical reasons. It has been discussed in the newsgroups a while back and left this way to keep compatibility.
Would adding "property FlushOnDestroy: Boolean" be ok with you?
|Adding "property FlushOnDestroy: Boolean" would be excellent!|
|Yes, adding a new property like "FlushOnDestroy" is perfect - if it has the same effect. Thanks!|
This is now in CVS, the property FlushOnDestroy has been added, its default value being True.
|2005-08-27 09:06||CRoeper||New Issue|
|2005-08-28 03:29||obones||Note Added: 0007849|
|2005-08-28 03:29||obones||Status||new => feedback|
|2005-08-29 18:27||elahn||Note Added: 0007891|
|2005-08-30 11:17||CRoeper||Note Added: 0007893|
|2005-08-31 01:25||obones||Status||feedback => resolved|
|2005-08-31 01:25||obones||Resolution||open => fixed|
|2005-08-31 01:25||obones||Assigned To||=> obones|
|2005-08-31 01:25||obones||Note Added: 0007898|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|