dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #19950] DateTime.UtcNow exceptions.


From: Nick Lee
Subject: [Pnet-developers] [bug #19950] DateTime.UtcNow exceptions.
Date: Thu, 24 May 2007 08:38:04 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

URL:
  <http://savannah.gnu.org/bugs/?19950>

                 Summary: DateTime.UtcNow exceptions.
                 Project: DotGNU Portable.NET
            Submitted by: nick_lee
            Submitted on: Thursday 24/05/07 at 08:38
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When running on a multi processor system, calls to DateTime.UtcNow can result
in the following exception:

System.ArgumentOutOfRangeException: Ticks value for DateTime is out of range
Parameter name: Ticks
    at System.DateTime..ctor(Int64) in ./System/DateTime.cs:136
    at System.DateTime.get_UtcNow() in ./System/DateTime.cs:788
    at PortabilityProblems.DateTimeBug.Run()

Attached code reproduces problem, but not always.  Running it repeatedly
tends to cause it to fail about 30% of the time.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thursday 24/05/07 at 08:38  Name: DateTimeBug.cs  Size: 573B   By:
nick_lee

<http://savannah.gnu.org/bugs/download.php?file_id=12847>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19950>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]