Page 1 of 1

Distance From Command

Posted: Sun Apr 09, 2006 10:51 pm
by jsc
With 2.0.47, I was working on a plot and used the Info>Distance from command. With the input dialog box up, I tried to type the date and time into X1. As soon as I typed "2/" for the date, DPlot "disappeared", ie, crashed and blew up with no error message or complaint.

Seems to work fine with mouse input. It just didn't like the slash character when I started typing the date.

Posted: Mon Apr 10, 2006 9:59 am
by DPlotAdmin
Well that's certainly rude, isn't it? Thanks for pointing out the problem, will fix this as soon as possible.

Posted: Mon Apr 10, 2006 11:36 pm
by DPlotAdmin
Fixed. You can get the fixed version using Help>Check for Updates.

There were two separate problems here:
1) Updating the display every time a text box changed (as in typing a single key), as opposed to waiting until the text box lost focus. I can't think of a good reason for doing this and am not sure why it was written that way to start with, other than I was just having a bad day. Dates are an obvious problem, but any sort of multi-digit entry would normally result in nonsense initial answers. In the case of dates, DPlot saw your "2/", knew it wasn't a valid date, so tried to evaluate it as an equation. And that led to the second, worse problem:

2) The function parser crashed if an operator was not followed by an operand. I'm surprised this one hasn't been caught before, as it has been there from the start. In any case it is now fixed. "2/" as an equation now results in an error message.

Thanks for pointing out the problem(s).

Posted: Tue Apr 11, 2006 7:05 am
by jsc
Thanks!

Jon

Posted: Tue Apr 11, 2006 2:51 pm
by DPlotAdmin
Uh-oh. The "fix" to the function parser ended up invalidating many perfectly legal equations along with those it was trying to catch, like "Y=X/". Anybody who installed 2.0.4.8 using Help>Check for Updates prior to 11 Apr, 14:50 US CDT will need to do it again. Sorry for the inconvenience.