From 766d9537fb5c781730626ceef843b524ea156d0f Mon Sep 17 00:00:00 2001 From: edmundchong Date: Fri, 25 Mar 2016 15:46:12 -0400 Subject: Update vimbaobject.py This is to fix the problem of Python crashing (#23, #19) for Vimba versions later than 1.3, proposed by Bill at AVT. The earlier fix "can corrupt random memory up to 999* the size of the FeatureInfo struct" --- pymba/vimbaobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymba/vimbaobject.py b/pymba/vimbaobject.py index 6a9a165..9f57c62 100644 --- a/pymba/vimbaobject.py +++ b/pymba/vimbaobject.py @@ -73,8 +73,8 @@ class VimbaObject(object): # call once to get number of available features # Vimba DLL will return an error code errorCode = VimbaDLL.featuresList(self._handle, - byref(dummyFeatureInfo), - 999, + None, + 0, byref(numFound), sizeof(dummyFeatureInfo)) if errorCode != 0: -- cgit v1.2.3