Threading/monitoring external dll network calls

  • Thread starter Thread starter Claire
  • Start date Start date
C

Claire

We've had problems with a third party dll that communicates over a network
and would like to be able to monitor each function call.
We thought of using a 2nd thread which would log an alert if the 1st thread
didn't emerge from a dll function call within a certain timeout period
What I need to know is if all application threads hang while one is stuck or
if they will keep running nevertheless.
thanks
 
No, all other application threads will not hang.

"to be able to monitor each function call" you can write an lsp
( layred service provider ) to monitor function calls, but this is unmanaged
code and rather tricky.

Another way you can create a mutex object in one thread and wait for it with
timeout.

You can also make a call in the 3-d party dll with the help of async
delegate and then use BeginInvoke/EndInvoke
 
Back
Top