08-29-2024, 09:35 AM
(08-23-2024, 10:20 PM)DSMan195276 Wrote: @Krovit when the issue happens again (the EXE icon does not match the one you were using) please check the file `./internal/temp/icon.ico` and let me know if it is the wrong/old one. That file is what gets compiled into your executable, it should be a copy of the most recent icon is but perhaps there's a bug where it's not getting updated.I checked for the presence of the file icon.ico in the /internal/temp/ folder of QB64.
I tried deleting everything and then compiling from within the DavsIDE environment using the F5 key: the icon (whose address is correctly entered) displayed in the executable file window is the right one; however, the icon of the executable file is even "old" and belonged to a project I haven't worked on for many months (and I really don't know where it's pulling it from).
If I compile everything through a batch file that calls the compiler, all the icons are correct, so I think I can say that the problem does not depend on the syntax of the QB64 code.
Frankly, it's a behavior that surprises me! I venture a hypothesis: DavsIDE keeps track of the icon's location and writes it down somewhere. I mean, it doesn't copy the ICO file but only writes the path, so it's not possible to trace the icon used in the working environment by searching for the file.