Version: 1.1

Posted: 2005-08-10

Build Requirements: Mac OS X 10.4, Xcode 2.1

Runtime Requirements: Mac OS X

View Source Code:

Download Sample (“MachPortDump.zip”, 34.3K)
Download Sample (“MachPortDump.dmg”, 94.2K)



Description

This sample dumps out the Mach port name space of a process. It is designed to be used as a tool by developers who are writing inter-process communication code on Mac OS X. Typically this code is based on Mach ports, or some higher-level wrapper around Mach ports. You can run this sample to check to see whether your code leaks ports.

Document Revision History

Date Notes
2005-08-10This sample code has been updated to include a project (for Xcode 2.1) to produce a universal binary and there were no code changes required for it to run correctly on the Developer Transition Systems.
2004-11-12Dumps out the Mach port name space of a process; useful when debugging port right leaks.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.