By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Diagnosing Application Hangs

P: n/a
I have a problem with an application which randomly hangs on site.

The symptoms are that the user will click a button - which normally
would open a new form (which inevitably will create a socket connection
back to a server using remoting) - but just hangs. Sometimes the
application will close itself (ie disappear without any errors), other
times it needs to be manually stopped.

Looking at the event log, I see in the application log the record of
the application hang (which I think is written up when you say
Send/Don't send information to microsoft?). This doesn't appear to
give too much information at all. However, looking at the system log,
I *always* see the WMI Performance Adaptor entering the "stopped" state
at *exactly* the same time as the application hang is recorded in the
application event log. Subsequently (5 seconds or so later) the WMI
Performance adaptor restarts up.

I've read that RPC based applications will hang if the WMI performance
adaptor isn't running, so I'm guessing that this is the problem. I'm
presuming that something in my application is causing the issue - but I
don't know what or even where to start looking.

The only thing that may be a problem is that the form that is being
created is often running on a seperate thread to the main form. (this
is because the form is created in an object that is itself running on a
seperate thread). I don't see that this ought to be a problem, but in
case it is, the forms are normally created using a public shared method
in the class eg :

Public Shared Function DisplayJob(JobNo as String)
dim Cls as new DisplayJobClass
Cls.JobNo=JobNo
dim t as new threading.thread(address of cls.Show)
t.start
end Function

public class DisplayJobClass
Public JobNo as string
Public sub Show
dim frm as new frmDisplayJob(JobNo)
frm.showdialog
end sub

Anybody any pointers as to how I can trace the problem and solve it ??
Perhaps some monitoring tools that I can run ??

Many thanks in advance

Simon Verona

Nov 11 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.