Grabber::getLastError Method

Returns information about an error that occurred, during the last library-method call.
Syntax:
Error getLastError();
Return value:

An Error object.

Remarks:

Returns the error that occurred during the last call to a method of this object. If no error occurred, eNO_ERROR is returned.

The MemBufferCollection has its own MemBufferCollection::getLastError method. Errors that occur in a method call to a MemBufferCollection object will be reported there.

Sample:
if( grabber->getLastError() )
{
    printf"Error: %s\n", grabber->getLastError().c_str() );
}
See also: Grabber, Error, MemBufferCollection::getLastError

<< Grabber

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.