QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Gowand 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.
[ This attachment cannot be displayed inline in 'Print Page' view ]
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.
[ This attachment cannot be displayed inline in 'Print Page' view ]
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
-
Are you setting the title with the _TITLE command? https://www.qb64.org/wiki/TITLE
-
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.
-
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.
-
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