|
|||
author | remove search highlighting | ||
---|---|---|---|
posted: 13 Nov 2009 22:30 from: Paul Boyd
click the date to link to this post click member name to view archived images |
Hi Martin Your nemesis has struck again! Attached is a screen shot, and the only way to close Templot was the ultimate put-down - the three-fingered salute! 105_131721_590000000.png The sequence of events leading to this was:- 1 - Hit the , key to bring up the 'shove timber' dialogue. 1.5 - Clicked on the timber to modify. 2 - Clicked on the 'along' mouse action. 3 - Hit '5' on the numeric keypad. 4 - Hit 6 on the numeric keypad. The error occurred at this point. I've done exactly the same sequence countless times without any problems. Just glad I'd not long saved the layout so I was able to get my lost control template back! Paul |
||
Last edited on 13 Nov 2009 22:31 by Paul Boyd |
|||
posted: 14 Nov 2009 14:04 from: Martin Wynne
click the date to link to this post click member name to view archived images |
Hi Paul, Many thanks for posting that report. Needless to say, I can't reproduce the problem from your recipe. This bug has been driving me nuts for years -- I'm thankful that it crops up only infrequently. I know it's in the shove timbers, I know which list is affected, but try as I might I can't see how the index gets out of bounds. Setting the index to Count-1 is a frequent operation, and doing so when the Count is zero is a common programming error. But I just can't see how it's happening. When I do finally find it I know it will be blindingly obvious! Thanks again. regards, Martin. |
||
posted: 16 Nov 2009 11:38 from: Jim Guthrie
click the date to link to this post click member name to view archived images |
Martin Wynne wrote: Hi Paul,Martin, On one of the bits of software I have written I get that error message when there is one record in the input data - I covered the zero record count :-) I could stagger through the software on the debugger to see how I have transgressed and maybe that will give a clue. :-) I haven't bothered to sort it out since a one event input is extremely rare, and the workround is to add another dummy event which is easier than re-writing the program :-) Jim. |
||
posted: 16 Nov 2009 12:12 from: Brian W Lewis
click the date to link to this post click member name to view archived images |
Hi Martin and Jim! In days of yore I used to write software too. The "blunt instrument" workaround I used was to check the index, and if less than 1 set it to 1. Not, you'll notice, "equal to zero" (which would allow -1 to get through). Oh OK, mothers and eggs and all that :-) |
||
posted: 16 Sep 2011 22:38 from: Martin Wynne
click the date to link to this post click member name to view archived images |
Just bumping this topic to say that thanks to Len Cattley I have now at long last found this bug. It will be fixed in the next TDV update. This bug has been niggling me for years, so I'm extremely grateful to Len for providing the steer which led me to it. Needless to say once found it was blindingly obvious -- code which should be executed only when a shove-timber mouse action is finally cancelled was being executed on every mouse button release. This actually caused a problem only if the mouse action restored the shoved amount to zero between clicks. Hence the rarity of the bug showing itself. More here: topic 1629 Many thanks again Len. regards, Martin. |
||
Please read this important note about copyright: Unless stated otherwise, all the files submitted to this web site are copyright and the property of the respective contributor. You are welcome to use them for your own personal non-commercial purposes, and in your messages on this web site. If you want to publish any of this material elsewhere or use it commercially, you must first obtain the owner's permission to do so. |