# FLASH BUG (memory leak - LoadVariables)

**URL:** <https://forum.kirupa.com/t/flash-bug-memory-leak-loadvariables/107856>\
**Category:** Uncategorized\
**Created:** [April 19, 2004, 7:22pm UTC](https://forum.kirupa.com/t/flash-bug-memory-leak-loadvariables/107856 "2004-04-19T19:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaKe](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@MaKe](https://forum.kirupa.com/u/MaKe)\
**Post date:** [April 19, 2004, 7:22pm UTC](https://forum.kirupa.com/t/flash-bug-memory-leak-loadvariables/107856/1 "2004-04-19T19:22:39Z")

</div>

We are working on a project where Flash application should read in a constant loop variables from php script and then properly react.

Everything works fine execpt after a memory usage start to grow at 1Mb/min, more or less… it varies from time to time. Our browser works then very slow (Mozilla Firefox, Opera, Mozilla Firefox and Mozilla for Linux)

Our code:

\_root.onEnterFrame = function()  
{  
load\_lv = new LoadVars();

```
 load_lv.load("http://robin56.uni-mb.si/tekma/timer.php");

```

}

We also tried with function LoadVariables but we got the same results (MEMORY LEAK).

Is this a bug in a Flash or we are missing something?

Please give us some advise what to do. Is there any other possible way to read variables from php script. (10 times/sec)

We have also tested an AMFPHP example found on the [www.amfphp.org/?g=examplegoogle](http://www.amfphp.org/?g=examplegoogle) and if you click on search button very often and fast for a while you also get memory leak.

PLEASE HELP!!!

You can test my leaking FLASH aplication here:

[http://robin56.uni-mb.si/tekma/memory\_leak.html](http://robin56.uni-mb.si/tekma/memory_leak.html)

Here is source code:

[http://robin56.uni-mb.si/tekma/memory\_leak.fla](http://robin56.uni-mb.si/tekma/memory_leak.fla)

Thank you for your answer.

This example reads variables from php script only in Mozilla. It’s a bit strange to me but ok.

So in explorer you won’t get memory leak of course.

Try with firefox, opera or anything like it.
