I had the same problem when trying to save two times the same image on flex, i was using jpegencoder.swc library,
now i had changed to as3_jpeg_wrapper.swc and all works fine
Also, i was creating my library on same method that do the save work, ive changed it to the initialization method
Dont know if where the creation of the library can solve your issue, but try it
Im using Flex SDK 3.3 and Flash 10.0.0.0 debugger version
Hope i help you
Really i dont know, i didnt see the C code diferences, but there are diferent versions, there are 2 versions that use Alchemy to encode
maybe this site can help http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/
That error usually means that your app is trying to access memory that it should not be accessing.
That happens usually because:
* memory leaks
* improper initialization
* bad pointer asigment
* going beyond the limit of an array/c string
* you consumed all of the available heap/stack
Also, it also shows up if you are targeting flash player 11.2, which is currently not supported.
hope that helps.