Beta 5.605 'file not found' crashes

Running a program from the new editor, where the program DOES run, if I deliberately try to load a file that can't be found, after reporting the error, the system crashes--can't get back to the editor window without closing down the entire TB system. Maybe someone else can try this and see if they get the same behavior--just make a mistake in the path of a read file.

Rick

Comments

Hi Rick,I just want to get

Hi Rick,

I just want to get the circumstances right. Are you saying that when you are running a program and that program attempts to read a non-existent file, an error message is produced but the system fails to return to the editor?

Can you describe the error message because I don't think it comes from the editor itself. If it does, then control must have returned to the editor so I can do something about it.

I have just tried this and I get the error message - no such file - in the ERROR window. The output window was still on display, but control had returned to the editor correctly. Did you attempt to close the output window? If you did then this is the reason for the crash. As reported earlier, version 5.5b19 on which the editor is based, crashes when you attempt to stop the program from the output window menu.

If you repeat this test immediately after creating the error, then the editor crashes immediately. I should add that version 5.5b19 cannot handle this situation either. It shows the error window with no error message, instead the source code window is over-written with the error message. The output window remains on screen and cannot be removed.

Clearly there is a problem here, but I am not sure it can be resolved from the editor.

Regards
Big John

crashing on error

John,

I make the No Such File (9300) error often. I am not in the office, so I can't retest 5.606 right now (probably did try to close the Output Window) but I can run the exact same program with the exact same error under my 5.5b22 and CANNOT get it to crash.

(all the following in 5.5b22)When I run the program from the editor, the Output window opens with the "Finished. Click the mouse or hit any key' message. I can do that, OR I can try to close the output window. In either case the window does not close but the editor windows comes to the fore (BTW--a blank error window also opens). At the top of the editor window, in much larger font than I'm using, a little too far left with the background blanking some of the window border, I see No such file. (9300) and the line number. But now I CAN close the output window, and the error window, no crashes. Can't get it to crash. The Command Window also notes the error. I guess the point here is that I don't get crashes here. The 5.5b22 editor has problems, but crashing in the way you describe is not one of them. (try it--from the file I provided) Therefore I would suggest the problem is repairable.

Rick

Fatal crashes at runtime.

Hi Rick,

I have found a way to avoid the new editor crashing under the circumstances you describe or any other fatal errors. My method brings the editor window to the front, presents the list of errors correctly in the error window and preserves the source window text correctly. The only thing I cannot do is remove the output window, but the user can close this in the normal way without causing a problem. A slight improvement on version 5.5b22.

The real problem resides in the runtime routine that is incorporated into the editor during the binding process. Certain types of runtime errors cause an immediate exit from this routine leaving some areas of memory in a mess, including the color palette. If there are no errors during runtime, then a clean-up process ensures that the return to the editor is nice and clean.

I will release my modifications in version 5.606 in a few days, unless you find any more bugs. Do you know of any bugs in version 5.5b22 because these must also exist in version 5.5b19 too.

A special binder is required to produce the bound version of the editor. This special binder is specific to a particular SYSTEM file. I only have a special binder for version 5.5b19, not for version 5.5b22.

Regards
Big John

re:editor errors

John,

Let me scour my machines at work tomorrow to see if I've kept any of the more recent correspondence concerning the editor--have tons of stuff prior to 2000 that I found, but I think I cleaned out a lot of old stuff thinking that True
Basic had pretty much hit a standstill a year or so ago. If I have anything, I'll send it off to you. I will try to look some more at your current version.

Rick