X2025r3.1 under Win 10 Pro 22H2
I’m trying to build a web app which includes a web map viewer (simple example attached). It will run once, but if I try to run it a second time, I get a compilation failed error
I try cleaning out the contents of the build directory, but the referenced dll is locked, and I have to re-start the machine.
Has anyone else encountered this?
Example project:
MapsExample.zip (6.5 KB)
Am I missing something?
Thanks
Steve
As a data point, this behavior is not happening here on macOS with your sample project.
Are you running a project that is saved in a OneDrive location? OneDrive can cause funny file system errors.
Thanks Tim.
The project is saved to a local SSD, no Onedrive or Google drive.
Other projects not including the map viewer do not seem to show this behaviour.
This is very interesting then.
Unfortunately, that means we’ve exhausted what I can do to help. I wish you the best.
@Steve_Johnson
I tried example from external SSD Win 11 25H2 Xojo 2026R1.1
Ran it multiple times and no issues
I also tried it on main SSD and had no issues
Maybe check Windows security settings and see if files are being blocked
OK, after a little more diagnosis, this time with X2026r1.1, still under Win10 Pro, I think I’ve isolated the problem:
If you start from the provided ‘MapLocation’ example, and select Google as the map renderer, and provide a Google API key, you can run the project. When you stop it from the IDE, the underlying debug directory does not get cleaned up. X2026r1.1 displays a ‘Cleaning up debug build, please wait…’ dialog (X2025 did not display this dialog). Everything gets stuck at this point. If you cancel the dialog, you have to go into Task Manager > Users and find <app.exe> and terminate it yourself in order for the next run of the project to be able to overwrite the directory and files.
If you select MapLibre as the renderer, you do not get this problem, and the ‘Cleaning up…’ dialog vanishes of its own accord.
So it looks like something in the Google Maps renderer is preventing the debug.exe from terminating, hence the files not being cleared out, hence the compile error on the second and subsequent run.
In passing, I note that the MapLibre renderer seems to ignore the lat/long set in the IDE, and always centers the new map on 0/0, somewhere on the equator, off the coast of Africa. I’ve got round this by having a me.gotolocation(..) in the opening event of the map viewer.
Should I report any or all of these as issues?
Thanks to all who contributed suggestions about checking the files.
Steve
I’m having a similar issue with debug apps not closing properly. It happens quite often so my hack is to keep a command line open and run taskkill /F /IM debug* /T
1 Like