Try looking at memory use with a performance monitor:
http://msdn.microsoft.com/library/de.../netcfperf.asp
http://wiki.opennetcf.org/ow.asp?Com...ormanceMonitor
Or using a tracelistener to output debug info:
http://www.opennetcf.org/library/Ope...ExMembers.html
-Chris
"Christian Westerlund" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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