unhandled exception

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

    unhandled exception

    i am using VS.NET 2003 and coding in VB.NET.

    some of my users recieving an unhandled exception in one of my programs.
    although these exceptions always occur during a certain process, they are
    totally random as to if and when they occur. if have not been able to
    reproduce these errors on my machine nor can anyone else here in the IT dept.

    i have try catch blocks around every event, sub, and function involved in
    the process (even in the finally statements). i was hoping someone else had
    an idea.

    here is a screen shot...
    <img src="http://img.photobucket .com/albums/v314/SilverSurfer77/ex.jpg"
    alt="Image hosted by Photobucket.com ">

    or just click here:

  • Dave

    #2
    Re: unhandled exception

    Your screen shot does not show the complete stack trace. What call in your code is causing the exception-throwing method to be
    invoked? I would start there first.

    --
    Dave Sexton
    dave@www..jwaon line..com
    -----------------------------------------------------------------------
    "Kunkel" <dankunkel@hotm ail.com> wrote in message news:97F007B2-5AB6-4BFE-B883-FEF8691AC421@mi crosoft.com...[color=blue]
    >i am using VS.NET 2003 and coding in VB.NET.
    >
    > some of my users recieving an unhandled exception in one of my programs.
    > although these exceptions always occur during a certain process, they are
    > totally random as to if and when they occur. if have not been able to
    > reproduce these errors on my machine nor can anyone else here in the IT dept.
    >
    > i have try catch blocks around every event, sub, and function involved in
    > the process (even in the finally statements). i was hoping someone else had
    > an idea.
    >
    > here is a screen shot...
    > <img src="http://img.photobucket .com/albums/v314/SilverSurfer77/ex.jpg"
    > alt="Image hosted by Photobucket.com ">
    >
    > or just click here:
    > http://img.photobucket.com/albums/v3...urfer77/ex.jpg[/color]


    Comment

    • Kunkel

      #3
      Re: unhandled exception

      unfortunately i do not know what is causing the exception. what puzzles me
      further is that everything is nestled inside of a try/catch, so how could
      this exception not be handled?

      is there a reference that i can use to help me decifer what the stack trace
      is indicating?

      Thanks for the reply!

      "Dave" wrote:
      [color=blue]
      > Your screen shot does not show the complete stack trace. What call in your code is causing the exception-throwing method to be
      > invoked? I would start there first.
      >
      > --
      > Dave Sexton
      > dave@www..jwaon line..com
      > -----------------------------------------------------------------------
      > "Kunkel" <dankunkel@hotm ail.com> wrote in message news:97F007B2-5AB6-4BFE-B883-FEF8691AC421@mi crosoft.com...[color=green]
      > >i am using VS.NET 2003 and coding in VB.NET.
      > >
      > > some of my users recieving an unhandled exception in one of my programs.
      > > although these exceptions always occur during a certain process, they are
      > > totally random as to if and when they occur. if have not been able to
      > > reproduce these errors on my machine nor can anyone else here in the IT dept.
      > >
      > > i have try catch blocks around every event, sub, and function involved in
      > > the process (even in the finally statements). i was hoping someone else had
      > > an idea.
      > >
      > > here is a screen shot...
      > > <img src="http://img.photobucket .com/albums/v314/SilverSurfer77/ex.jpg"
      > > alt="Image hosted by Photobucket.com ">
      > >
      > > or just click here:
      > > http://img.photobucket.com/albums/v3...urfer77/ex.jpg[/color]
      >
      >
      >[/color]

      Comment

      • Dave

        #4
        Re: unhandled exception

        I understand that you don't know what is causing the exception to be thrown.

        What I am suggesting is that you should look at the stack trace to find the last method of yours that is invoking the framework
        calls, which eventually lead to an exception. The image you provided a link to does not display any of your methods in the call
        stack because you did not scroll down far enough before taking the screen shot.

        Find the method, set a break point and attach a debugger. When your break point is hit check your variables before the first
        framework method in the call stack is invoked. If I am correct, you should find that your code attempts to pass a null object
        reference to a framework method, hence the NullReferenceEx ception being thrown. If it is more complicated than that, you'll need to
        check the state of your application's variables and your code's relationship to the framework calls being made.

        GL

        --
        Dave Sexton
        dave@www..jwaon line..com
        -----------------------------------------------------------------------
        "Kunkel" <dankunkel@hotm ail.com> wrote in message news:7FFC6CA7-6D20-4FF9-A01C-EB308CF4D7EF@mi crosoft.com...[color=blue]
        > unfortunately i do not know what is causing the exception. what puzzles me
        > further is that everything is nestled inside of a try/catch, so how could
        > this exception not be handled?
        >
        > is there a reference that i can use to help me decifer what the stack trace
        > is indicating?
        >
        > Thanks for the reply!
        >
        > "Dave" wrote:
        >[color=green]
        >> Your screen shot does not show the complete stack trace. What call in your code is causing the exception-throwing method to be
        >> invoked? I would start there first.
        >>
        >> --
        >> Dave Sexton
        >> dave@www..jwaon line..com
        >> -----------------------------------------------------------------------
        >> "Kunkel" <dankunkel@hotm ail.com> wrote in message news:97F007B2-5AB6-4BFE-B883-FEF8691AC421@mi crosoft.com...[color=darkred]
        >> >i am using VS.NET 2003 and coding in VB.NET.
        >> >
        >> > some of my users recieving an unhandled exception in one of my programs.
        >> > although these exceptions always occur during a certain process, they are
        >> > totally random as to if and when they occur. if have not been able to
        >> > reproduce these errors on my machine nor can anyone else here in the IT dept.
        >> >
        >> > i have try catch blocks around every event, sub, and function involved in
        >> > the process (even in the finally statements). i was hoping someone else had
        >> > an idea.
        >> >
        >> > here is a screen shot...
        >> > <img src="http://img.photobucket .com/albums/v314/SilverSurfer77/ex.jpg"
        >> > alt="Image hosted by Photobucket.com ">
        >> >
        >> > or just click here:
        >> > http://img.photobucket.com/albums/v3...urfer77/ex.jpg[/color]
        >>
        >>
        >>[/color][/color]


        Comment

        Working...