BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deactivating BoldSystem twice crashes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General)
View previous topic :: View next topic  
Author Message
Rolf Lampa [RIL]
Guest





PostPosted: Tue Sep 12, 2006 7:10 pm    Post subject: Deactivating BoldSystem twice crashes Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.