Options

unsafenativemethods.waitmessage

I downloaded your trial version and ran it against my problem application. I found that unsafenativemethods.waitmessage is the slowest method by far. The problem is I don't know what this means. Please help.


Bob

:?:
Bob Avallone
ASC

Comments

  • Options
    Hello Bob,

    I'd make an assumption that this method is simply waiting for something to happen. Since ANTS Profiler is a real-time profiler, it counts idle time on objects such as timers that just sit there and wait.

    The best advice I can give in that case is to not consider this method a problem.
  • Options
    Hi there,

    UnsafeNativeMethods.WaitMessage is the call at the heart of Windows Forms that processes any Windows messages that come into your graphical application. It will spend most of its time in a waiting state. Typically it will appear in your results as taking about as much time as your application is running for. As Brian points out, you do not need to worry about this call when trying to find bottlenecks.

    Thanks,

    Tom Harris

    Red Gate Software
Sign In or Register to comment.