G
Guest
My program makes use of a third party class library to do some
transformations. The transformations take a long time, so I spawn the library
call as a new thread. The problem is that the library spawns threads of its
own, outside of my namespace. One of their threads is spawned at Highest
priority, causing the GUI to stop responding (defeating the whole purpose!).
Also, if I decide to cancel the operation and call Abort(), any new threads
continue on in perpetuity. That's obviously a problem.
I have no control over the class library, but I'd still like to enforce the
priority and abort the threads if I need to. Is there any way for my code to
even access these "grandchildren"?
transformations. The transformations take a long time, so I spawn the library
call as a new thread. The problem is that the library spawns threads of its
own, outside of my namespace. One of their threads is spawned at Highest
priority, causing the GUI to stop responding (defeating the whole purpose!).
Also, if I decide to cancel the operation and call Abort(), any new threads
continue on in perpetuity. That's obviously a problem.
I have no control over the class library, but I'd still like to enforce the
priority and abort the threads if I need to. Is there any way for my code to
even access these "grandchildren"?