List Info

Thread: DateTime.UtcNow exceptions.




DateTime.UtcNow exceptions.
user name
2007-05-24 03:38:04
URL:
  <http://savann
ah.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=128
47>

    _______________________________________________________

Reply to this item at:

  <http://savann
ah.gnu.org/bugs/?19950>

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


_______________________________________________
Pnet-developers mailing list
Pnet-developersdotgnu.org
ht
tp://dotgnu.org/mailman/listinfo/pnet-developers

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )