FLASH BUG (memory leak - LoadVariables)

  • MaKe
  • Born
  • Born
  • MaKe
  • Posts: 1

Post 3+ Months Ago

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 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

Here is source code:

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.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Not entirely sure the issue, but I can tell you right now that both redefining the LoadVars() object and loading data from a file in within an onEnterFrame is going to be CPU intensive.

If you can reduce the time between data loading I would say to give setInterval() a try instead of onEnterFrame.
  • jhenigin
  • Newbie
  • Newbie
  • jhenigin
  • Posts: 5

Post 3+ Months Ago

I'm curious why you dont loadvariables in IE?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 9 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.