nonesense "No Error" error when quit.

Previous topic - Next topic

spacefractal

First Im have to say im have absolut no idea why this happens and is complete clueless, so im cant give any source at all.

Sometimes when you quit the app, the IDE would cast a "No File" to the editor, jump to the main source file, and then simply jumps to a complete nonesense line, often top of the app, where its only perform once.

Something like this:
"D:\Dokumenter\Programmer\Glbasic\GLBasic\ProjectName\main.gbas"(84) error : No file

But that line still init GLOBAL lines and actuelly have does nothing elsewise yet. That is very annoying, because you will lose the track where you was yet (here its often set to the line: GLOBAL CONTOROLSIZE=1.00).

Im thinks this IDE bug can only been fixed on one way:
Check the error input and DONT jump if the line dosent contain a IO command (such as OPENFILE, LOADSPRITE etc). Im thinks its only way to due, since its seen its very random when its happens (but the error should still shown, but just dont auto jump to the line).

PS. This only happens on quit with debug mode on, so not a major bug as its sound, but still one of the more annoying one.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

fivesprites

I've had the same problem, but found out that it was my app not loading some resources for Windows.  In my case it was some audio files.

Once I'd ensured that all image/sound/music files were loading up correctly then this "No file" error stopped.

//Andy

spacefractal

but its should not jump like that, so its seen its a confirmed bug. Its a small, but annouing one.

Here by now, its seen random, so im have not a clue which medie its is yet.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

The "No Error" message usually comes up if a file has been left open (including INI files).

spacefractal

You can been right here, still annoying and might have been happens with the level reader.

Still it's a bug, a incorrect error.

I'm checks that when possible.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

Yes, technically the no error is an error.

spacefractal

But I'm do want its don't jump to a random line when it's happens. It's not the error it's self, but here it's should only show it without jumping to the line.

Can easy to been checked.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

Oh. Can I reproduce that?

spacefractal

im still not sure why its happens, but its seen MrTAToad can been right, because im have forget to close some files, if was still open, if something was failed in it. Have not tried to reproduce it.

Howover for a blindfix, dont jump to the line if "No Error" happens, but instead just show that in the log window....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

#9
This will cause it (in debug mode) :

Code (glbasic) Select
OPENFILE(1,"moo.txt",1);

Produces :

Quoteerror: 3
"C:\Users\Nicholas\Documents\GLBasic\Test\Test.gbas"(1) error : No file

Does GLBasic close all file handles on exit ?

spacefractal

#10
thanks for the reproduce. The funny part is the "no error" will been sendt to the main file and never on the OPENFILE command, which its should. Its seen GLBASIC dont close correctly on the files, when you quit. So in the end, a pretty minor bug.

Sorry if its was sound dramatic.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/