Board index » delphi » BeforeClose
Ren?Laursen
Delphi Developer |
Ren?Laursen
Delphi Developer |
BeforeClose2003-12-19 09:25:06 PM delphi133 Is it correct that BeforeClose/AfterClose is NOT triggered when tables are closed during formdestroy ? If it is: Why ? Ren?/ SSV |
Dell Stinnett
Delphi Developer |
2003-12-23 05:24:38 AM
Re:BeforeClose
Are you explicitly closing your tables or depending on the form to do it for
you? I have heard that having the form's destruction automatically close the tables for you can result in data corruption. So, I'd make sure that you are explicitly closing the tables with "table.close" or "table.active := false" in either the FormClose event handler or OnCloseQuery event handler. I prefer OnCloseQuery because it will get called even when Windows is closing down. -Dell |