Destroying the HRC
The useful life of an HRC
object usually expires when the recognizer returns results at the end of an
input session. The next input session requires the creation of a new HRC
. When finished with an HRC
object, an application should destroy the object in two steps:
- Call DestroyHRC to free the occupied memory.
- Set the HRC handle to NULL.
HRC vhrc = NULL; // Set to NULL until HRC is created
. // Create and use the HRC
DestroyHRC( vhrc ); // Destroy the HRC when finished
- hrc = NULL; // Handle is now invalid
returns, the handle value remains unchanged though no longer valid. The
second step above prevents frustrating bugs arising from the inadvertent use of an
This same advice applies to the other recognition objects, HRCRESULT
. After calling DestroyHRCRESULT
, always set the invalid handle to NULL.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database