czardas Posted May 31, 2010 Share Posted May 31, 2010 (edited) A bug in one of my scripts had somehow gone unchecked by me: simply because it was not causing any problems. I seem to remember having doubts about it at the time, and perhaps I had dismissed the possibilty of a divisor becoming zero during a particular operation which involved the Mod function. Amazingly, the script always seemed to work in any case. So apart from now making myself feel like a clown, I was surprised to receive a Microsoft bug report when I tried to run the script with the latest AutoIt interpreter. It didn't take me long to track the problem, and after running tests I discovered the following.AutoIt Version: 3.3.0.0Mod(1,0) => Returns -1.#INDAutoIt Version: 3.3.6.1Mod(1,0) => Send Error Report to MicrosoftI couldn't find any reference to changes in error handling. It could be relevant to the Devs. Both tests were run on XP pro service pack 3. This is the first time I have encountered a Microsoft Bug Report while using AutoIt, otherwise I would not have mentioned it. Edited May 31, 2010 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
jchd Posted May 31, 2010 Share Posted May 31, 2010 It's either (or both, why not?) related to this ticket (where as posted as anonymous because I almost always forget to re-enter jchd in this little box) or that post.I posted a workaround. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
czardas Posted May 31, 2010 Author Share Posted May 31, 2010 Thanks for the responce. I really have no idea if it's a bug, related to any other issues, or not. I am used to getting errors from the handler, but not from the OS. It's really a consequence of an error in my code. But it seemed a bit out of the ordinary to get that message. I don't know if it helps at all. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 31, 2010 Share Posted May 31, 2010 It is a bug that it would hard crash like that. Link to comment Share on other sites More sharing options...
jchd Posted June 1, 2010 Share Posted June 1, 2010 Granted. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Mat Posted June 1, 2010 Share Posted June 1, 2010 It's fixed in the next version according to the ticket. AutoIt Project Listing Link to comment Share on other sites More sharing options...
czardas Posted June 2, 2010 Author Share Posted June 2, 2010 It's fixed in the next version according to the ticket.Presuming it is the same issue. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
jvanegmond Posted June 2, 2010 Share Posted June 2, 2010 Presuming it is the same issue. It's not. The ticket says: Fixed by revision [5432] in version: 3.3.1.7 Looks like that change has probably created this bug since it's not in 3.3.0.0 and in my 3.3.4.0 it does crash. github.com/jvanegmond Link to comment Share on other sites More sharing options...
czardas Posted June 2, 2010 Author Share Posted June 2, 2010 I decided I ought to create a new ticket. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Valik Posted June 2, 2010 Share Posted June 2, 2010 You are correct, the code was fixed so that integers are treated as integers and not converted to floats. This introduces a divide-by-zero possibility. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now