System.NullReferenceException in system.dll

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

    #1

    System.NullReferenceException in system.dll

    Im getting:

    "An unhandled exception of type 'System.NullRef erenceException '
    occurred in system.dll
    Additional information: Object reference not set to an instance of an
    object."

    The error is outside of my code and I cant get any debug info, just a
    disassembly of:

    System.Net.Sock ets.OverlappedA syncResult.Comp letionPortCallb ack
    000000a0 movzx esi,al

    I've used try-catch on all areas of the code that i think could be
    involved, but yet the this exception slips though.

    It taks me about half an hour to reproduce this error, so it is quite
    a time consuming task to debug. Could someone please tell me what kind
    of events might be the cause of this error?
  • Fredrik

    #2
    Re: System.NullRefe renceException in system.dll

    Please?

    eelector@hotmai l.com (Fredrik) wrote in message news:<e3787004. 0311221131.2680 fe99@posting.go ogle.com>...[color=blue]
    > Im getting:
    >
    > "An unhandled exception of type 'System.NullRef erenceException '
    > occurred in system.dll
    > Additional information: Object reference not set to an instance of an
    > object."
    >
    > The error is outside of my code and I cant get any debug info, just a
    > disassembly of:
    >
    > System.Net.Sock ets.OverlappedA syncResult.Comp letionPortCallb ack
    > 000000a0 movzx esi,al
    >
    > I've used try-catch on all areas of the code that i think could be
    > involved, but yet the this exception slips though.
    >
    > It taks me about half an hour to reproduce this error, so it is quite
    > a time consuming task to debug. Could someone please tell me what kind
    > of events might be the cause of this error?[/color]

    Comment

    • Fredrik

      #3
      Re: System.NullRefe renceException in system.dll (PLEASE HELP)

      Is there any way to contain/catch the exception then?
      I still cant get rid of it. :(
      I've tried

      public static void SystemErrorHand ler(Object Sender,
      UnhandledExcept ionEventArgs Args)
      {
      Exception e = (Exception)Args .ExceptionObjec t;
      Console.WriteLi ne ("Caught : " + e.Message);
      }

      in winmain:

      AppDomain.Curre ntDomain.Unhand ledException += new
      UnhandledExcept ionEventHandler ( SystemErrorHand ler);

      But the handler never seems to get invoked. The exception still
      escapes and causes the program to crash.

      PLEASE help, this error has brought the my entire project to a
      complete stand-stil.

      (and please excuse my bad English :) )


      eelector@hotmai l.com (Fredrik) wrote in message news:<e3787004. 0311221131.2680 fe99@posting.go ogle.com>...[color=blue]
      > Im getting:
      >
      > "An unhandled exception of type 'System.NullRef erenceException '
      > occurred in system.dll
      > Additional information: Object reference not set to an instance of an
      > object."
      >
      > The error is outside of my code and I cant get any debug info, just a
      > disassembly of:
      >
      > System.Net.Sock ets.OverlappedA syncResult.Comp letionPortCallb ack
      > 000000a0 movzx esi,al
      >
      > I've used try-catch on all areas of the code that i think could be
      > involved, but yet the this exception slips though.
      >
      > It taks me about half an hour to reproduce this error, so it is quite
      > a time consuming task to debug. Could someone please tell me what kind
      > of events might be the cause of this error?[/color]

      Comment

      Working...