Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Speech Recognition Manager /
Chapter 1 - Speech Recognition Manager / Speech Recognition Manager Reference
Speech Recognition Manager Routines / Managing Speech Objects


SRReleaseObject

You can use the SRReleaseObject function to release a speech object.

pascal OSErr SRReleaseObject (SRSpeechObject srObject);
srObject
A speech object.
DESCRIPTION
The SRReleaseObject function releases the object reference specified by the srObject parameter. If there are no other remaining references to that object, SRReleaseObject disposes of the memory occupied by the object.

SPECIAL CONSIDERATIONS
Your application should balance every function call that returns an object reference with a call to SRReleaseObject. This means that every call to a function whose name begins with SRNew or SRGet that successfully returns an object reference must be balanced with a call to SRReleaseObject.

In addition, you should call SRReleaseObject to release references to SRSearchResult objects that are passed to your application (via an Apple event handler or a callback routine).

SEE ALSO
For more information on creating and releasing object references, see "Object References" on page 1-8.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997