 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rolf Lampa [RIL] Guest
|
Posted: Tue Sep 12, 2006 7:10 pm Post subject: Deactivating BoldSystem twice crashes |
|
|
Trying to get rid of (unloading) BoldObjectLocators in runtime I'm
deactivating and re-activating the BoldSystem (never tried this trick
before). But it crashes at the second pass in the following code:
// While-Loop importing objects
// ...
// At intervals the BoldSystem is deactivated, like this:
//
repeat
DMBoldData.BoldSystemHandle.UpdateDatabase;
until not DMBoldData.BoldSystemHandle.System.BoldDirty;
DMBoldData.BoldSystemHandle.Active := False; <-- Crash!!!!
DMBoldData.BoldSystemHandle.Active := True;
// End while
I just cannot figure out why it crashes at Active := false the *second*
time, I deactivate it? I can trap the exception quitely and gof for more
iterations, but after a while it all locks up.
I also tried to free the datamodule and recreate it (from the MainForm),
at no avail. So far only restarting the entire application does the
trick for me. Anyone having any ideas about where to look for the problem?
I get the feeling that the BoldSystem leaves some half done trash behind
when closing down which it can't resolve when going active again in the
same app-session. Recreate the BoldSystem component with code? Hm...
Regards,
// Rolf Lampa |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|