 |
BitFlow Imaging Solutions
|
| View previous topic :: View next topic |
| Author |
Message |
stick_thai
Joined: 14 Jul 2010 Posts: 6
|
Posted: Wed Jul 14, 2010 9:11 am Post subject: Disable error messages |
|
|
Dear BitFlow Support,
I have got a problem with my program when I try to initialise more than one camera, but only of them is connected with the frame grabber.
In my source code I have deactivated all error messages using: | Code: |
ReturnVal = BFErrorDisableAll(Board[i],4298);
if(ReturnVal != BI_OK)
BiErrorShow(Board[i],ReturnVal); |
But it seems that it does not know the error number as the following message shows up:
| Quote: | | Unknown error number. Could not find error message for the error number passed into function. |
So I get the following screen: | Quote: | Internal SDK error
An error has occured in the current application.
Source file: BFBrdUsr.c
Line number: 1287
Error code: 4298
Error text: Can't initialize for camera. |
Could you please advice me what to do? Thanks and best regards,
Stefan.
P.S.: I am using the hardware Karbon-CL R64 with Microsoft Visual C++ 2008 on a Windows XP professional x64 system. |
|
| Back to top |
|
 |
BFSupport
Joined: 09 Feb 2004 Posts: 300
|
Posted: Wed Jul 14, 2010 2:27 pm Post subject: |
|
|
The BitFlow SDK uses two error systems. One for the high-level Bi API errors, and one for all other APIs (Ci, BF, etc.);
To get the error message from a BF function, call the code like this:
ReturnVal = BFErrorDisableAll(Board[i],4298);
if(ReturnVal != BI_OK)
BfErrorShow(Board[i]);
Does this work for you? |
|
| Back to top |
|
 |
stick_thai
Joined: 14 Jul 2010 Posts: 6
|
Posted: Wed Jul 14, 2010 2:32 pm Post subject: |
|
|
Dear BitFlow Support,
I am sorry, but I don't see the difference of your code. The function, that shall disable all the error messages, is still the same, isn't?
What I am trying to do is to disable all the error messages send by your SDK as I am handling them by myself.
Bye,
Stefan. |
|
| Back to top |
|
 |
BFSupport
Joined: 09 Feb 2004 Posts: 300
|
Posted: Thu Jul 29, 2010 1:15 pm Post subject: |
|
|
OK, there are a couple of things going on here.
First, if you get an error returned from a "BF" or "Ci" function, you need to pass the error value to the function BFErrorShow(). This is the main difference between our example and your example. In your example you are sending the return value from a "BF" function to BiErrorShow(). BiErrorShow() should only be use for errors return from "Bi" functions.
The next problem is that if you want to disable all error output methods for a given error number, you should call BFErrorDisableAll() and supply the error number. If you want to disable all error methods for all errors, then you should call:
BFErrorDisableAll(hBoard, ErrorAll);
Does this make sense? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|