ImageGear for C and C++ on Windows v19.7 - Updated
LPFNIG_ERRSTACK_CLEAR
API Reference Guide > Core Component API Reference > Core Component Callback Functions Reference > LPFNIG_ERRSTACK_CLEAR

This callback function is called each time a thread that registered this callback (using IG_err_callback_set() function) clears the stack.

Declaration:

 
Copy Code
typedef VOID (LPACCUAPI LPFNIG_ERRSTACK_CLEAR)(
        LPVOID lpPrivate,     
        UINT nRecords
);

Arguments:

Name Type Description
lpPrivate LPVOID Private data passed.
nRecords UINT Number of records cleared from the stack starting with index 0.

Return Value:

None

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

Filters, FlashPix, Multimedia, MFC Threads

Example:

 
Copy Code
VOID  ACCUAPI  LocThErrClearCB(
LPVOID   lpPrivate,     /* Private data passed in.                   */
UINT     nRecords     /* Number of records cleared from the stack starting from 0 index. */
)
{
        char     szOutput[1024];
        sprintf( szOutput, "Local CallBack - error stack cleared\nThread Id:%u\nThread
number:%i, Records cleared:%i", 
                GetCurrentThreadId(), (int)lpPrivate, nRecords );
        // AfxMessageBox( szOutput );
        ::MessageBox(NULL, szOutput, "THREADS", MB_OK);
}