LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I get an error (-17306) How/where do I look for its description

Hello,

it's a more of a general question, rather than the description of this specific error.

Where do these error come from? (which CVI module).


Is there a command to get the error description?

Thanks
Rafi
0 Kudos
Message 1 of 4
(3,209 Views)
To interpret the error number, you really need to know where the error came from. So your coe should do some local error checking in spots where you think errors may occur. In CVI, go to any source code window, press P to search for a function panel, and enter error in the Find What box. You'll see a bunch of different functions to get the error string or info.
If the error is from the Windows SDK, you can call FormatMessage.

char errorMsg[256];
//...
FormatMessage(
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
errno,
LANG_NEUTRAL,
errorMsg,
256,
NULL);
0 Kudos
Message 2 of 4
(3,196 Views)
Thanks Al,

Thanks for answering. I saved your answer and I'll check it out.

However, I'm talking about a situation where my application is already deployed and I get a run-time error with and error code. What do I do with it? Where do I look for error codes? (Let's assume the error is issued by CVI or TestSTand).

Thanks
Rafi
0 Kudos
Message 3 of 4
(3,180 Views)
Hello Rafi2003,

The easiest way to find more information on these errors (including error -17306) would be to first search through the CVI/TestStand Help documentation that ships with the product, and then, like you would with MSDN, search our KnowledgeBases.

In particular the following KnowledgeBase might help you troubleshoot the error you are receiving.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 4
(3,159 Views)