[Mono-bugs] [Bug 648894] New: DateTime.Now occasionally throws NullReferenceException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 24 19:50:07 EDT 2010



           Summary: DateTime.Now occasionally throws
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: peter at endnode.se
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
Gecko/20101019 Firefox/3.6.11

Once in a while my program crashes with the following error message:

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.DateTime.get_Now () [0x00020] in
  at PersonalProxy.ProxySession.GotNewRequest (System.Net.Sockets.Socket
client) [0x00000] in /home/peter/Projekt/PersonalProxy/ProxySession.cs:276 
  at PersonalProxy.ProxySession.Run () [0x00026] in
  at System.Threading.Thread.StartUnsafe () [0x00016] in

>From my code:
ProxySession.cs: Line 276                 DateTime timeout =
DateTime.Now.AddSeconds (30);
The code is compiled in Debug mode.

Reproducible: Sometimes

Steps to Reproduce:
Have occurred more frequently close to the startup of the application. Still
the exception is thrown a couple of times a day

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list