O
osudude
What happens in the following scenario?
1.Via a DLL interface, a managed thread kicks off a potentially long running
FOR loop operation encapsulated by a native C++ dll. This FOR loop has C++
try/catch logic and allocates memory using calloc.
2. The managed thread is aborted before step 1 can complete.
In a pure managed environment, you would catch ThreadAbortException and
handle it appropriately (log error and do clean up). Is some kind of
similar exception thrown in the C++ dll to indicate thread abortion or is
the thread just killed with no opportunity for exception handling / clean up
logic?
thanks!
ScottM
1.Via a DLL interface, a managed thread kicks off a potentially long running
FOR loop operation encapsulated by a native C++ dll. This FOR loop has C++
try/catch logic and allocates memory using calloc.
2. The managed thread is aborted before step 1 can complete.
In a pure managed environment, you would catch ThreadAbortException and
handle it appropriately (log error and do clean up). Is some kind of
similar exception thrown in the C++ dll to indicate thread abortion or is
the thread just killed with no opportunity for exception handling / clean up
logic?
thanks!
ScottM