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

This function clears all errors from the error stack.

Declaration:

 
Copy Code
VOID ACCUAPI IG_error_clear();

Arguments:

None

Return Value:

None

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Example:

 
Copy Code
BYTE szModuleName[30];
INT  iNameSize;
INT  iLineNumber;
AT_ERRCODE  iCode;
AT_ERRCOUNT nErrcount;
INT n;
iNameSize = 30;
nErrcount = IG_error_check();
for ( n = 0; n < nErrcount; n++ )
{
    IG_error_get( n, (LPSTR)szModuleName, iNameSize, 
        &iLineNumber, &iCode, NULL, NULL );
}
IG_error_clear();

Remarks:

After calling this function, IG_error_check will return zero.