malloc error when repeatedly calling getInputBitmap in an FxPlug plug-in on FCP
malloc error when repeatedly calling getInputBitmap in an FxPlug plug-in on FCP
- Subject: malloc error when repeatedly calling getInputBitmap in an FxPlug plug-in on FCP
- From: Benjamin Kent <email@hidden>
- Date: Tue, 04 Dec 2007 16:44:17 +0000
Hi,
Adding the following code into the renderOutput section of the
SimpleMatte sdk plug-in:
double theTime;
for(theTime=0; theTime<900; theTime+=0.5f) {
FxBitmap * theBitmap = NULL;
[getAPI getInputBitmap:&theBitmap withInfo:renderInfo atTime:theTime];
[theBitmap release];
}
gives a malloc error in the console of the form:
Final Cut Pro(21811,0xa000d000) malloc: *** vm_allocate(size=6234112)
failed (error code=3)
Final Cut Pro(21811,0xa000d000) malloc: *** error: can't allocate region
Final Cut Pro(21811,0xa000d000) malloc: *** set a breakpoint in
szone_error to debug
Am I failing to free some memory, or is there an internal issue in FCP?
It appears to only give this error when applied to an actual imported
clip (as opposed to one created by a generator effect).
In case you're wondering why any such code should exist, I need to do an
analysis pass through the sequence in one plug-in.
Thanks
Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden