- This topic has 2 replies, 2 voices, and was last updated 3 years, 5 months ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Hello,
I’m using TMonitor as a lock in kbmmw and i had deadlock problems when i terminated the app.
I found the reason was FLock.BeginWrite; in the TkbmMWScheduledEvent.Terminate
I commented the FLock Begin/Endwrite without problems so far. (the app terminates fine)
Also TkbmMWCustomThread.InitializeThread does locking (FLock.BeginWrite) while
in TkbmMWCustomThread.FinalizeThread is commented.
IOW, is there a reason for the locks because as i see the code for the above 3 procedure it isn’t needed. (i might been wrong)
Thank you
Dah! Reverting back to kbmMW locking … I dunno if this a TMonitor issue or kbmMW!
TkbmMWScheduledEvent.Terminate contains locking to prevent the scheduled event being executed or being scheduled for execution if it is about to be terminated vs. termination setting awaits execution finishing.
/Kim/C4D