Running Xojo Apps In Windows

Hi all,

The last 10 days I spent tracking down a memory leak in URLConnections running under Windows. Today I found something extremely interesting.

When copying the Xojo created app to the Windows desktop, and then running the app from there, it uses more than double the memory than when run from a sub directory. I am used to working on Mac and there it makes absolutely no difference from where the app is run.

In my case, the app uses roughly 42,800kb when run from the desktop, and around 21,200kb when run from the /program files directory. This is at least what the Task Manager reports (under the Details tab).

Has anyone else noticed this or something similar ?

Kind regards from Namibia,
Andreas

What version of Xojo?

Hi Julien, 2021r2.1

Do you see the same issue with a new empty project?

I just created a blank Window with button to quit the program. While the difference is not as large, running from the desktop requires 4,820kb, from /program files needs 4,776kb. That with just a button on it and this bit of code:

Dim Response as Integer

Response = MsgBox(“Are You Sure You Want To Quit ?”, 36, “Quit Program”)

If Response = 6 then

Quit

End

URLConnection does leak <https://xojo.com/issue/59628>

But I don’t know why you’re seeing the memory usage change, I don’t see it here but I’m only testing in debug mode not with a compiled app as I don’t have a licence for 2021r2.1.

Maybe someone else can try and let us know if they see any difference.

If you are running any, have you tried disabling any anti-malware or virus protection software on the test exe in program files just in case its doing something funky with the app.