Error message when taking a snapshot

I'm using ANTS profiler version and I'm I get this message when trying to take a snapshot: "System.NullReferenceException:
Object reference not set to an instance of an object.
at System.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Forms.Control.Invoke(Delegate method, Object[] args)
at _3._3(IAsyncResult )"

Is there anything which can be done?



  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hi Aliza,

    The error message isn't terribly revealing, since it's unhandled. What it looks like is an error in remoting. When you take a snapshot, the profiling data gets transferred from your application to the Profiler interface. I believe this mechanism is through .NET remoting, which is notorious for garbage collecting items that are still in use unless they implement an infinite object lifetime.

    I suppose that running the profiling session for a shorter period of time may help. You may also want to upgrade to version 2.71, or better yet 3.1, if you have a running support contract with us!

    You can find the latest 2.x version of ANTS Profiler at and you can download the latest version from our website.
Sign In or Register to comment.