FLASH BUG (memory leak - LoadVariables)

  • MaKe
  • Born
  • Born
  • No Avatar
  • Joined: Apr 19, 2004
  • Posts: 1
  • Status: Offline

Post April 19th, 2004, 12:25 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 19th, 2004, 12:25 pm

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post April 19th, 2004, 9:14 pm

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
  • No Avatar
  • Joined: Apr 16, 2004
  • Posts: 5
  • Status: Offline

Post April 19th, 2004, 9:22 pm

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

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.