Enhanced IDE
- Posted by Mike777 <anon4321 at g?ail.c?m> Jan 21, 2008
- 544 views
This is primarily intended for Judith, but if anybody else has any input, that would be fine with me. I seem to have run into a repeatable circumstance where code is obliterated. I'm not sure I can create a small repeatable example, but here is the code that will do it at my end. Take a normal text box and look at the onKeyUp event. Code it with: w32VOID=message_box(sprintf("The value of the key is:[%14.6f]",params[1]),"",0) Then run the program and input something which will cause a crash. On my system, that is just typing C twice. When you go back and look at the onKeyUp event in the IDE, it will be gone. I mention this not because I'm losing one line of test code. I mention this because after a crash, the routine that was in the process of executing is sometimes obliterated. It happened to me a couple of times with a Window/[General] code block [a BIG one]. When that happened, I was not very happy. But since I couldn't reliably replicate it and it happened so infrequently, I just implemented a "save the project file frequently" habit and went about my way. Now that I can reliably reproduce a code obliteration, I thought the least I could do is to mention it here so that if somebody wants to spend the time to track down the bug, they can and maybe more importantly, to encourage backing up the prj file "just in case." Mike