I am using a K8055 board, while running my program i use SetCurrentDevice to ensure that the my program is still connected to the card.
However, if i disconnect my card and execute SetCurrentDevice(0), the return value is 0, shouldnt this be -1 if the card is no longer connected? I am using the 3.0.2.0 version of the K8055 DLL
For anyone else experiencing this possible bug, a work around is to use the SearchDevices method as follows (Visual Basic):
Private Declare Function SearchDevices Lib "k8055d.dll" () As Integer
Private Function CheckConnection(ByVal CardID As Integer) As Boolean
Dim result As Short = (2 ^ CardID) And SearchDevices
Return IIf(result = 1, True, False)
End Function
The problem is, my version of SearchDevices() returns ‘0’ no matter how many cards are connected