DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date/Time Format with improbably large numbers

 
Post new topic   Reply to topic    DPlot Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Sat Jul 02, 2005 1:07 pm    Post subject: Date/Time Format with improbably large numbers Reply with quote

Not a big issue, but if you happen to generate large values for the X-axis while you have date/time formatting turned on, the program will terminate. It looks like the formatting routine has an unhandled condition, probably as the result of an integer conversion going negative. The issue appears if an x value is greater than 2^31. I tripped over it while attempting to convert a timescale to milliseconds (multiplying using operate on X) before switching the format back to default - not a sequence I can recommend. Not something you'd generally have a problem with unless you regularly need to check your calendar 6 million years from now, but since the results are so startling, I thought I'd report it...
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sat Jul 02, 2005 1:44 pm    Post subject: Reply with quote

Richard,
Thanks. That problem actually did occur to me briefly as I was working on the last update, but didn't stay in my head long enough to fix it.

Hmm... an integer operation, that means you need to guard against integer overflow. Nah, who's going to do that?

And now we know Smile

I'll definitely have this fixed next time, most likely by making it all floating point. So if you want to plot the time of day when the sun is expected to fizzle, you'll be able to.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Sat Jul 02, 2005 3:32 pm    Post subject: Reply with quote

Do whatever is easiest, I personally don't really care if it actually returns a sensible date since I think the Morlocks will introduce a new standard to replace the Gregorian calendar. I just didn't want it to crash....
_________________
- RAS
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group