ADC Home > Reference Library > Technical Notes > Legacy Documents > Carbon >

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:

ioNamePtr in File Manager Calls

CONTENTS

[Nov 01 1987]






ioNamePtr

It is very important to set ioNamePtr when making PB calls, even if you don't want those calls to return a name. Whenever Inside Macintosh indicates that ioNamePtr is either required for input or returns something, you must set ioNamePtr to either nil (if you aren't using a name) or to point to storage for a Str255.

If you don't explicitly set ioNamePtr, strange and unusual crashes may occur, depending on the machine/configuration your code is run on.

References

The File Manager

Back to top

Downloadables

Acrobat gif

Acrobat version of this Note (44K)

Download


Back to top


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.