Application Hangs

  • Thread starter Christian Westerlund
  • Start date
C

Christian Westerlund

Hi!

I've done an application that my client says hangs after it has been
running for a couple of weeks.
I have two extra threads of which one saves to file and one reads from a
serial-buffer.
I've been really careful and used lock mechanisms for variables and used
Invoke for UI-manipulation.
Actually I'm using Threadpool.QueueUserWorkItem because I don't want any
of the two extra threads to block because Invoke blocks and threre isn't
any BeginInvoke or something like that. So I queue up an thread and from
there I call Invoke.
I'm familiar with threading concepts like deadlocks and such so I've
tried to minimize such situations but when an application hangs
completely it seems like the problem could be a deadlock.

How do I find the problem, it's kind a drag have to run the app for
weeks before the problem occurs.
Does anyone recognize my problem or feel they can offer some helping
information or inspiration I would be very happy!

CF App on a Dell Axim Pocket Pc

/ Chris
 

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

Top