From: JR S. <sc...@we...> - 2012-07-17 03:22:58
|
I am curious how CGBitmapContextRefs generated by CGBitmapContext.create() are handled, if at all. A similar issue arises with CGImageRef created. I looked at the C implementation, and from my high-level understanding of the code it doesn't appear that there are any finalizers to take care of this. (The DELETE method is empty). Adding to my concern is that the objc impemtetion does contain a "release" method that properly calls CGContextRelease. So I am wondering: 1) Is "CG" resource management being done in the c implementation? If so, how? 2) If no resource management is being done, is there a way to release them manually? I fear that this will require modifying the c implementation, which looks extremely difficult. 3) Alternatively, is it possible to mix-and-match the objective c and c implementations of the XMLVM classes? Writing the objective c implementations looks far more straightforward, but I still the c back end for full java classlib compatibility. Thanks in advance for any advice! JR Schmidt -- J.R. Schmidt WebMO, LLC |