# Memory leaks with Socket and Loader

**URL:** <https://forum.kirupa.com/t/memory-leaks-with-socket-and-loader/228303>\
**Category:** Uncategorized\
**Created:** [June 6, 2007, 7:31pm UTC](https://forum.kirupa.com/t/memory-leaks-with-socket-and-loader/228303 "2007-06-06T19:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camupod](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/camupod/32/2903_2.png) [@camupod](https://forum.kirupa.com/u/camupod)\
**Post date:** [June 6, 2007, 7:31pm UTC](https://forum.kirupa.com/t/memory-leaks-with-socket-and-loader/228303/1 "2007-06-06T19:31:23Z")

</div>

Hi,

I wrote a flash app that connects to a server ( with Socket() ) which sends out packets of binary data which represent jpeg images that form a video stream ( about 6 images/second ). I then store this data into a ByteArray and load it with Loader.loadBytes(). I works really great with one exception: it leaks memory horribly. I can’t figure out exactly why it’s leaking. I have read up a lot on Flash garbage collection, but I can’t seem to find the problem.

Thanks!
