DragSpeed Failure Mode

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderator: Klaus

Post Reply
WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

DragSpeed Failure Mode

Post by WaltBrown » Tue Mar 03, 2015 5:04 am

Currently, if you enter a value greater than 65535 as a "dragSpeed", execution fails and an error is thrown. I see that it indicates that 65535 is the maximum value in the documentation, but should it throw an error? The documentation does not say it will.

I vote that it is an unhandled exception to be corrected, and instead should fail gracefully and report into "the result", or, even better, just set the "dragSpeed" to the maximum available of 65535.

Of note is that if you enter a negative value as "dragSpeed", which is also out of range, it is just ignored, which means it has inconsistent out of range results.

In neither failure case is anything posted to "the result".

Discovered in 7.0.3 Community, Win7 x64.

Walt
Walt Brown
Omnis traductor traditor

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: DragSpeed Failure Mode

Post by FourthWorld » Tue Mar 03, 2015 5:56 am

I agree with your assessment. I'd suggest filing an enhancement request report on that.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: DragSpeed Failure Mode

Post by WaltBrown » Tue Mar 03, 2015 6:28 am

Walt Brown
Omnis traductor traditor

Post Reply