Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to dispose resources #4

Open
rdalv opened this issue Aug 18, 2011 · 0 comments
Open

how to dispose resources #4

rdalv opened this issue Aug 18, 2011 · 0 comments

Comments

@rdalv
Copy link

rdalv commented Aug 18, 2011

How can I properly dispose the resources after the encoder is no longer required?
This is what i've tried:

  1. I've tried setting the byte arrays and the ShineMP3Encoder object to null but that didn't do it.
  2. Then I copied the ShineMP3Encoder class code into my project and exposed the cshine and cmodule.shine.CLibInit objects and set those to null with no results.
  3. I've looked into the shine library a little, and in main.c and there is a closeByteArray function that is is passed to config.wave.file and config.wave.output when they are initialized but I am not sure if it gets called.

It seems like no matter what i tried the memory usage in the profiler kept growing. I am not a flex developer and have not used Alchemy before, so I would appreciate a little help on this :) Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant