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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top