Help

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
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top