Author Topic: Exe creating bug after opening two bas files at once  (Read 1636 times)

0 Members and 1 Guest are viewing this topic.

Offline Gowand

  • Newbie
  • Posts: 3
    • View Profile
Exe creating bug after opening two bas files at once
« on: December 05, 2019, 07:34:44 am »
Hello there,

Since yesterday I got a big bug with executing .bas files.
This was happening after I tried to open two bas files at once. Both had just sub's in it without "cls" and "end" command. After opening the two files, the following windows appeared. I don't really remember if it were two or just one window.

  [ You are not allowed to view this attachment ]  

Unfortunately, I hit the "Enter" button and since then all exe-files I create are, no matter where the files are opened, being saved in the source folder with the right name but opened with the name "untitled.exe"
Even if I open the exe-file with the right name, it still has the filename "untitled.exe" in the execution window. See next picture.

  [ You are not allowed to view this attachment ]  

I have a Windows 10 Laptop. Until yesterday everything run properly.
I already re-installed QB64 and moved it to other files.
I restarted the Laptop a few times.
I tried both picks of the option "Output Exe to Source Folder".

It seems that something was changed in Windows 10 causing this problem.

I hope u got any solutions for this problem.

Best Regards
« Last Edit: December 05, 2019, 07:51:11 am by Gowand »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Exe creating bug after opening two bas files at once
« Reply #1 on: December 05, 2019, 08:01:14 am »
Are you setting the title with the _TITLE command?  https://www.qb64.org/wiki/TITLE
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Gowand

  • Newbie
  • Posts: 3
    • View Profile
Re: Exe creating bug after opening two bas files at once
« Reply #2 on: December 05, 2019, 08:05:53 am »
Hi,

No, I just changed the filename in the folder without any commands.
For example, my File has the name "Tagestypen_V11".
Before trying to open two files at once yesterday, the execution file was created properly in the same folder as the bas file and with the same name. After running the exe, it also had the right name.

Thank you for your post.

Offline Bert22306

  • Forum Regular
  • Posts: 206
    • View Profile
Re: Exe creating bug after opening two bas files at once
« Reply #3 on: December 05, 2019, 03:04:56 pm »
For example, my File has the name "Tagestypen_V11".
Before trying to open two files at once yesterday, the execution file was created properly in the same folder as the bas file and with the same name. After running the exe, it also had the right name.

Wait, my .exe files are always created in the qb64 folder, and not in the same folder as the .bas file, and always have been. While my .bas files are in a different folder, one folder up, in the hierarchy. (Although, if I deliberately create a .bas file in the qb64 folder, then the .exe appears in that same qb64 folder, just as Gowand's screengrab shows.)

Isn't this the default behavior for qb64? It's worked that way for me ever since the SDL days. Could it be that Gowand's qb64 went back to the default setting? Or am I missing everything?

But the .exe file's name is correct, and only untitled if the .bas file isn't given a name and saved, before it is run.

Offline Gowand

  • Newbie
  • Posts: 3
    • View Profile
Re: Exe creating bug after opening two bas files at once
« Reply #4 on: December 05, 2019, 04:14:16 pm »
Hi Bert,

QB64 has the possibility to create the exe file in the folder of the bas file, even if its not in the default folder of QB64. This setting can be set in the IDE under "RUN" by selecting or deselecting the option "Create Exe in the Source Folder".
In my case, it worked fine and the exe files were created in the folder of the bas files.

By the way, its working again and the exe files are being created at the folder of the bas files. After reinstalling, I forgot to select the option "Output Exe to Source Folder"....
Its still named untitled after running a named exe, but maybe I just didnt notice that this was always the case.

Thank you very much guys.

Best Regards
« Last Edit: December 05, 2019, 04:56:02 pm by Gowand »