Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Message port transport error



Hello all,

I am using CFMessagePorts to transfer video frames to a helper tool which
compresses and writes a movie file. Basically the tool just calls
MovieExportFromProceduresToDataRef and exits after that.
The problem is that all frames get swapped to disk after deallocation by
the system (the documentation says this is automatic after the data have
been presented to my CFMessagePortCallBack). Apparently the system is not
reusing the freed memory blocks.
The frames are all the same size but I am also sending small messages back
from the server to my application. I am guessing this pattern of allocation
and deallocation causes the problem. Perhaps the small messages are
allocated from the large freed blocks making them just a little too small
to be reused?

Any hints would be very welcome as this is a showstopper for the video
export function in JES Deinterlacer. I need to be able to export long DV
movies as DV Stream. Even when I precompress in the main application this
fails and ends in a -4 error ( = kCFMessagePortTransportErr) after several
GB have been swapped to disk.

Jan.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.