bugDotGNU Portable.NET - Bugs: bug #19950, DateTime.UtcNow exceptions.

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #19950: DateTime.UtcNow exceptions.

Submitted by:  Nick Lee <nick_lee>
Submitted on:  Thu 24 May 2007 08:38:03 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Thu 24 May 2007 08:38:03 AM UTC, original submission:

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.

Nick Lee <nick_lee>

 

Attached Files
file #12847:  DateTimeBug.cs added by nick_lee (573B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nick_lee (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-24 nick_lee Attached File- => Added DateTimeBug.cs, #12847

    Back to the top


    Powered by Savane 3.3