Re: Enhanced IDE
- Posted by Dan Moyer <danielmoyer at pro?igy.n?t> Jan 22, 2008
- 522 views
Mike777 wrote: > > Dan Moyer wrote: > > > > Mike777 wrote: > > > > > > 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 > > > > Mike, > > > > Really not sure if this is relevant, but maybe *how* you run the program > > from > > within the IDE might relate to the problem? F6 (temporary run) vs F5 (run) > > ? > > > > Dan Moyer > > Dan, thanks for the reply. I almost always run from F5. Is that your > preferred > method? In any event, when I get a moment, I'll try reproducing the issue and > then substituting F6 to see if it presents a different result. > > Mike I haven't tried your example, but yes, I do usually use F5 myself, and if the choice were the problem, I'd have thought F6 would have been it, so I don't expect you'll find F6 to be a solution. Worth a try, though. Dan