Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    #1

    Help

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

    " An unhandled exception of type 'System.NullRef erenceException ' 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


  • Armin Zingler

    #2
    Re: Help

    "Mark" <Mark@discussio ns.microsoft.co m> schrieb[color=blue]
    > I get the following error when executing a simple VB.Net procedure:
    >
    > " An unhandled exception of type 'System.NullRef erenceException '
    > 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?[/color]


    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

    Comment

    Working...