From 292a472e00abe6906a494811d0bb6aa40deb6773 Mon Sep 17 00:00:00 2001 From: Gloweye Date: Mon, 6 Feb 2017 11:58:41 +0100 Subject: Fix for retrieving list of interfaces. Sending in None as reference explicitly tells the DLL we're only interested in the number of interfaces available. I was having crashes with this request otherwise. Note: I tested and verified this with Vimba 2.0. Perhaps the issue doesn't arise with older versions, but the documentation seems to indicate that this is the intended method all along. --- pymba/vimba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymba/vimba.py b/pymba/vimba.py index 1096917..2f78ea5 100644 --- a/pymba/vimba.py +++ b/pymba/vimba.py @@ -68,7 +68,7 @@ class Vimba(object): # call once just to get the number of interfaces # Vimba DLL will return an error code - errorCode = VimbaDLL.interfacesList(byref(dummyInterfaceInfo), + errorCode = VimbaDLL.interfacesList(None, 0, byref(numFound), sizeof(dummyInterfaceInfo)) -- cgit v1.2.3