Diagnosing Application Hangs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon

    #1

    Diagnosing Application Hangs

    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(JobN o as String)
    dim Cls as new DisplayJobClass
    Cls.JobNo=JobNo
    dim t as new threading.threa d(address of cls.Show)
    t.start
    end Function

    public class DisplayJobClass
    Public JobNo as string
    Public sub Show
    dim frm as new frmDisplayJob(J obNo)
    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

Working...