ADC Home > Reference Library > Technical Q&As > Legacy Documents > Cocoa >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Fixing the crash in the Picture Sharing code example


Q: Why does the Picture Sharing code example crash?

A: The Rendezvous example installed with the Mac OS X Developer Tools (July 2002 or later) at /Developer/Examples/Foundation/PictureSharing has a bug in it that causes it to crash under some conditions. To fix this bug, the following line needs to be removed from PicSharingController.m, line 169:

[incomingConnection release];

The incomingConnection is handed to the program already autoreleased, so there is no need to release it, and in fact doing so is an error that causes the program to crash. This bug in the code example should be fixed in an upcoming release of the Mac OS X Developer Tools.


[Jan 21 2003]


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.