Jump to content
Hans Hasenack

Trouble using UnObserved with nested threads

Recommended Posts

I am starting threads from threads that are not the main thread. eg using parallel.for or using CreateTask(...).Unobserved.Run.

 

Unfortunately the TOmniTaskCOntrol is not released for the nested threads. It seems to have something to do with the global minotor, and thread ending messages not being delivered or processed.

 

I have put it in some more detail here: https://stackoverflow.com/questions/64459678

and added an issue to github here: https://github.com/gabr42/OmniThreadLibrary/issues/152

 

Hint/Tips/Solutions are VERY welcome as I like the default Unobserved' better than an specifically created TOmniEventMonitor.

 

TIA

 

Hans

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×