# App leaks memory permanently

**URL:** <https://forum.xojo.com/t/app-leaks-memory-permanently/80271>\
**Category:** Bugs and Feature Requests\
**Created:** [May 11, 2024, 1:03pm UTC](https://forum.xojo.com/t/app-leaks-memory-permanently/80271 "2024-05-11T13:03:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Fritzsche](https://forum.xojo.com/user_avatar/forum.xojo.com/daniel_fritzsche/32/478_2.png) [@Daniel\_Fritzsche](https://forum.xojo.com/u/Daniel_Fritzsche)\
**Post date:** [May 11, 2024, 1:03pm UTC](https://forum.xojo.com/t/app-leaks-memory-permanently/80271/1 "2024-05-11T13:03:50Z")

</div>

Feedback Case Number: 76017

[https://tracker.xojo.com/xojoinc/xojo/-/issues/76017](https://tracker.xojo.com/xojoinc/xojo/-/issues/76017)

Hi,

I have filed the issue with a demo project and would appreciate if this case could be supported via thumbs up, so that the case gets a focus.

Probably someone can add some information if that project has similar results on windows too.

Best regards  
Daniel

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [May 11, 2024, 5:27pm UTC](https://forum.xojo.com/t/app-leaks-memory-permanently/80271/2 "2024-05-11T17:27:38Z")

</div>

i would run a method repeatedly with a timer in an interval and secondary output the runtime class status with object count and memory.

---

<div class="post-metadata">

**Author:** ![Eric\_Williams](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/ecccb3/32.png) [@Eric\_Williams](https://forum.xojo.com/u/Eric_Williams)\
**Post date:** [May 11, 2024, 6:00pm UTC](https://forum.xojo.com/t/app-leaks-memory-permanently/80271/3 "2024-05-11T18:00:21Z")

</div>

I wonder if this issue is related to this:

[https://tracker.xojo.com/xojoinc/xojo/-/issues/75794](https://tracker.xojo.com/xojoinc/xojo/-/issues/75794)

I noticed in the test code a comment that says “the leak doesn’t happen if you call it via a function call instead of inline”. This observation matches what we found in 75794, which is that objects created in a loop inside a function that go out of scope aren’t necessarily released from memory until the local scope ends (i.e., at the end of a method call).
