Object reference = System.Windows.Forms.UnsafeNativeMethods.Dispat

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

VB.net application running on Citrix Meteframe. We have about 1100 user and
we receive the below error about 20 times a day. The user is usually
switching from one application back to ours when they receive this error and
are kicked out of our application.

We are at a loss and need to get this fixed… Any help would be great!

We are having a hard time getting a dump using Windbg – this is not that
frequent. I have been running the application for two days and haven’t had
any problems.

Thanks,
Mike

Error:
Base Exceptions: Object reference not set to an instance of an object.
Base Exception Stack Trace: at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Coventry.Navigator.frmMain.Main()
Inner Exceptions (may be empty):

We have a global error handler that is catching the above error:

Public Shared Sub Main()

Try

AddHandler Application.ThreadException, AddressOf
UnhandledThreadExceptionHandler

Application.Run(New frmMain)

Catch ex As Exception
DisplayUnhandledException(ex)

End Try

End Sub

Private Shared Sub DisplayUnhandledException(ByVal ex As Exception)

Dim frmError As New frmError(ex, "Global Exception Handler
(frmMain.DisplayUnhandledException)", _
"An unexpected and unhandled global
error has occured. Due to the " _
& "critical nature of this error the
Navigator and the unknown state " _
& "the application may be in IT IS
HIGHLY RECOMMENDED THAT YOU SAVE YOUR " _
& "WORK AND RESTART THE NAVIGATOR.
PLEASE REPORT THIS ERROR TO THE CTSC.")

frmError.ShowDialog()

End Sub
 
Hi Mike,

Did you get any resolution to this problem. I am facing similar situation
and not able to reproduce this one.

Thanks.
Ajay
 
I too am experiencing this problem. I have a C# app running on top of a
managed C++ API and some unmanaged code. I am overriding WndProc and
I'm wondering if something I'm doing in there could be the culprit.
 
Back
Top