Rank: Member Groups: Member
Joined: 8/11/2015 Posts: 17
|
"Sometimes" we are getting the exception "ThreadRunner object must be explicitly destroyed before exiting the application or shutting down the AppDomain" after unloading an AppDomain that we have created.
We are not creating the ThreadRunner object(s) and we are calling EO.Base.Runtime.Shutdown() just before unloading the AppDomain.
Is there a way to wait for the runtime to shutdown to ensure that we would not get the aforementioned exception?
Note: We are unable to repro it in a consistent manner, nonetheless, it is customer visible.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We can't think of any case where this can occur without creating ThreadRunner object. The exception is thrown from an instance method of the ThreadRunner object, so somewhere in your code you must have created one. You must destroy it before calling Runtime.Shutdown.
Thanks!
|
Rank: Member Groups: Member
Joined: 8/11/2015 Posts: 17
|
Thank you for the quick reply, we will try to reproduce this problem.
|