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

 
 

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

bug #19950: DateTime.UtcNow exceptions.

Submitted by:  Nick Lee <nick_lee>
Submitted on:  Thu 24 May 2007 08:38:03 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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
  • -unavailable- added by nick_lee (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 May 2007 08:38:03 AM UTCnick_leeAttached File-=>Added DateTimeBug.cs, #12847

    Back to the top


    Powered by Savane 3.1-cleanup