Overall memory bytes limited?
I'm creating a video editing program with QTKit.
There is a sample program provided by apple here, http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/QTKitApplicationTutorial/CreatingaQTKitStoporStillMotionApplication/CreatingaQTKitStoporStillMotionApplication.html
My test program is based on this program, but use
QTMovie *movie = [[[QTMovie alloc] initToWrita开发者_运维百科bleFile:@"foo.mov" error:nil] autorelease];
and
[movie updateMovieFile];
for saving memories.
If there are not so many frames, the program runs well. But with so many frames, the program begins to show
QTKitServer(5618,0xa0924540) malloc: *** mmap(size=33554432) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
I checked memory leaks with Instruments,
but Live Bytes are not so big and found no memory leaks. Overall Bytes is really big but is this a reason of this problem?
Any ideas will be appreciated.
Thanks,
The overall bytes should not be a problem unless there is an unreported memory leak.
After some googling some people seem to get this problem when compiling for 32bit, what architecture are you compiling against?
精彩评论