diff options
| author | edmundchong <edmund.w.chong@gmail.com> | 2016-03-25 15:46:12 -0400 |
|---|---|---|
| committer | edmundchong <edmund.w.chong@gmail.com> | 2016-03-25 15:46:12 -0400 |
| commit | 766d9537fb5c781730626ceef843b524ea156d0f (patch) | |
| tree | ad8b3f08f2dd4d90c49657b5829b934b23ec59de | |
| parent | 301031879ae3177a9d0814bb01b20d3004b077fc (diff) | |
| download | pymba-766d9537fb5c781730626ceef843b524ea156d0f.tar.gz pymba-766d9537fb5c781730626ceef843b524ea156d0f.zip | |
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"
| -rw-r--r-- | pymba/vimbaobject.py | 4 |
1 files 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: |
