总内存字节数有限?
我正在使用 QTKit 创建视频编辑程序。
我的测试程序是基于此程序,但使用
QTMovie *movie = [[[QTMovie alloc] initToWritableFile:@"foo.mov"错误:nil]自动释放];
和
[电影更新电影文件];
为了保存记忆。
如果没有那么多帧,程序运行得很好。但是帧数太多,程序开始显示
QTKitServer(5618,0xa0924540) malloc: *** mmap(size=33554432) failed (error code=12) *** 错误:无法分配区域 *** 在 malloc_error_break 中设置断点进行调试
我用 Instruments 检查了内存泄漏,
但 Live Bytes 不是很大,没有发现内存泄漏。 总体字节确实很大,但这是否是此问题的原因?
任何想法将不胜感激。
谢谢,
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] initToWritableFile:@"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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非存在未报告的内存泄漏,否则总字节数不应成为问题。
经过一番谷歌搜索后,有些人在编译 32 位时似乎遇到了这个问题,你是针对什么架构进行编译的?
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?