Help

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

Guest

I get the following error when executing a simple VB.Net procedure:

" An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object. "

The debugger points to the VB.Net code of:

"Public Class Form1
Inherits System.Windows.Forms.Form"

When executing the procedure, the form comes up OK, but when the button is
pushed the above error happens. The button procedure opens an Excel
application.

The program was running fine yesterday. Not sure if it has anything to do
with anything but I started getting the error after Office PIAs were
installed my machine.

Any thoughts?

Thanks Mark
 
Mark said:
I get the following error when executing a simple VB.Net procedure:

" An unhandled exception of type 'System.NullReferenceException'
occurred in system.windows.forms.dll

Additional information: Object reference not set to an instance of
an object. "

The debugger points to the VB.Net code of:

"Public Class Form1
Inherits System.Windows.Forms.Form"

When executing the procedure, the form comes up OK, but when the
button is pushed the above error happens. The button procedure
opens an Excel application.

The program was running fine yesterday. Not sure if it has anything
to do with anything but I started getting the error after Office
PIAs were installed my machine.

Any thoughts?


Please post the call stack when the error occurs (menu debug -> windows ->
call stack). Make sure to show all procedures in the call stack by enabling
"non-user code" in it's context menu.


Armin
 
Back
Top