PC Review


Reply
Thread Tools Rate Thread

Application Hangs

 
 
Christian Westerlund
Guest
Posts: n/a
 
      28th Aug 2004
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
 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      29th Aug 2004
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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
application.followhyperlink hangs Access application Charlie O'Neill Microsoft Access 3 13th Mar 2010 05:31 PM
vb application hangs friend Microsoft VB .NET 16 11th May 2009 05:26 PM
application hangs up =?Utf-8?B?UmFjaGVs?= Microsoft Frontpage 1 25th Apr 2006 04:45 PM
application rem. clr. hangs up =?Utf-8?B?c3RldmU1Nw==?= Windows XP General 2 17th May 2005 07:50 PM
Application hangs Luke Windows XP General 0 8th Aug 2003 10:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 PM.