I am working with the example program obj2obj.c
I have a PCI-CAN/2 card installed.
I must call ncReset for *both* ports (CAN0 and CAN1), prior to any other commands or I will get a driver error (NC_ERR_DRIVER, Bxxx0002).
This happens even if the program terminates properly, closing all handles, and I then remove the ncReset commands.
Fine, I can live with the ncResets.
However, if I then try and debug the program using Microsoft Visual C++, it immediately chokes on the second call to ncReset( "CAN1", 0 ) and complains about an invalid handle.
If I add a status check to both of the ncResets and run the program from the DOS command line, I don't get any errors printed out
so the calls are working fine just running the program.
The driver updates listed do not appear to address this problem (1.4.1 uses LabView which I do not have and 1.4.2 is for Windows 2000)
Why are the ncResets required in the first place?
And why can't I single step through the second call to ncReset?
Thanks in advance for your help.
System details:
PC running Windows NT 4.00.1381
PCI-CAN/2 w/driver 1.4
Microsoft Visual C++ 6.0 Professional