Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_get_error.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_get_error.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_get_error.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_get_error.html on line 8

gf_dev_get_error()

Return the last GF error code

Synopsis:

#include <gf/gf.h>

int gf_dev_get_error( gf_dev_t gdev );

Arguments:

gdev
The handle for the graphics device to query. This is the handle acquired by gf_dev_attach().

Library:

gf

Description:

This function returns the last error code logged by a GF API call for the calling thread, providing additional information about the failure. This function resets the error indicator for the calling thread.

Possible GF error codes are:

GF_ERR_OK
no error
GF_ERR_MEM
memory allocation error
GF_ERR_IODISPLAY
error accessing io-display
GF_ERR_DEVICE
error accessing device
GF_ERR_SHMEM
error accessing shared memory
GF_ERR_DLL
error accessing dll/entrypoints
GF_ERR_THREAD
thread registration failure
GF_ERR_PARM
invalid parameter
GF_ERR_INUSE
resource in use
GF_ERR_NOSUPPORT
unsupported operation
GF_ERR_CFG
bad configuration
GF_ERR_NOLOCK
hardware isn't locked

Returns:

A value reflecting the last error logged. A value of GF_ERR_OK indicates that there have been no errors logged since the connection was established or since the last time the thread called gf_dev_get_error().

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_dev_attach()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_get_error.html on line 154

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_get_error.html on line 154