. When I use ncCloseObject with the same object handle that I use with the other functions, I get an error. The error I get is 80010004. This is a bad parameter error. The only parameter that is used is the Object Handle. How do I eliminate the error?This may not answer your question, but I think you need to close each object individually. such as...
Status = ncCloseObject(TxHandle)
Status = ncCloseObject(RxHandle)
for objects opened with
Status = ncOpenObject("CAN0::STD0", TxHandle)
Status = ncOpenObject("CAN0::STD9", RxHandle)
Hopefully this helps.
Marty