F
Frank Colbert
Hi,
We have a hosting app that creates AppDomains and calls
ExecuteAssembly on the appdomain instance. Under normal execution
this works fine, however under certain work-flows, a third party
component creates a foreground thread which may not terminate
gracefully. The problem is that ExecuteAssembly blocks forever in
this case. I tried explicitly unloading the app domain by setting a
timer, however I get a "CannotUnloadAppDomain" exception with the
message "Cannot unload appdomain because thread xxx cannot be unwound
out of it". Does anyone have any idea on how I can force the app
domain to unload?
We have a hosting app that creates AppDomains and calls
ExecuteAssembly on the appdomain instance. Under normal execution
this works fine, however under certain work-flows, a third party
component creates a foreground thread which may not terminate
gracefully. The problem is that ExecuteAssembly blocks forever in
this case. I tried explicitly unloading the app domain by setting a
timer, however I get a "CannotUnloadAppDomain" exception with the
message "Cannot unload appdomain because thread xxx cannot be unwound
out of it". Does anyone have any idea on how I can force the app
domain to unload?