Skip to main content
Participant
March 14, 2011
Question

Out of memmory with Sound object

  • March 14, 2011
  • 1 reply
  • 907 views

Hello,

I have 2k+ of mp3 files and i need form playlist based on id3 tags. When i create air.Sound object in JS I run load() method and get ID3 tags in COMPLETE event handler. After that i create new Sound object for next file and all looks fine but near 900 file I get Out of memmory error. Whats wrong?

Before create new object I set old variable value to NULL.

This topic has been closed for replies.

1 reply

chris.campbell
Legend
March 14, 2011

Hi,

I've forwarded this post over to our JavaScript experts for their review.  What platforms are you running into this on?  Which version of AIR are you using?  Finally, would it be possible to get a sample project or code that would help us reproduce the problem internally?

Thanks,

Chris

Participant
July 17, 2011

I am having this exact same issue. I am on Air 2.7 (Mac OS Lion, but it happens on lower versions as well). I can provide a small code sample if that helps.

I've tried setting the Sound object to null or use delete, but nothing seems to recover the used memory. I had a similar issue with the sound channel and found that I would not be able to free up memory unless I used .stop() on the channel first. Any help would be greatly appreciated.

chris.campbell
Legend
July 18, 2011

Hi Cory,

Could you email me the sample code (ccampbel@adobe.com)?  I'll give it a try asap and let you know what I find.

Thanks,

Chris