Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

incomplete documentation for imaq1394

the documentation for the legacy imaq1394 module is seriously lacking informations:
- imaq1394InstallCallback:
i cannot find any information related to the callback function: arguments, return values, ... nothing. i had to find how to use it based on examples and what seemed to work. now that the callback is called with an error signaled, i don't know how to fix it nor what is causing the error

- imaq1394ShowError:
for the textMessage parameter, the documentation says: "A pointer to an area of memory reserved for an error string. The reserved memory must be at least the size specified by the textLength parameter", and for the textLength parameter, "The size of the C string passed as the textMessage parameter".

in my software, i wrote this:
char  error_message[12];
imaq1394ShowError( error, error_message, sizeof( error_message ) );

now, how do you explain the following runtime error ?
"Array argument too small (12 bytes). Argument must contain at least 256 bytes (256 elements)"
0 Kudos
Message 1 of 1
(3,139 Views)