Closed GoogleCodeExporter closed 8 years ago
I can confirm this behaviour, using XP on a single-processor machine.
The problem seems to be that posting COmniTaskMsg_Terminated to the
MonitorWindow
triggers the detaching of the IOmniTaskControl interface from the monitored
tasks
list, and if there is no other reference to the interface the ref count drops
to zero
and the task control object is being destroyed, even though TOmniTask.Execute()
is
still executing in the other thread. Any subsequent accessing of otSharedInfo
leads
to the crash.
As a quick check I changed TOmniSharedTaskInfo to be a record instead of a
class, so
it gets deep-copied in TOmniTask.Create(), and then the crash does no longer
happen.
Original comment by michael....@gmail.com
on 23 Jul 2009 at 6:19
Fixed post 1.04 alpha (in revision 456).
Original comment by gabr42
on 13 Nov 2009 at 7:34
Original issue reported on code.google.com by
simonale...@gmail.com
on 6 Apr 2009 at 1:48