First I'd like to say that I'm impressed because the library seems to be well written and well documented - it also works in the same way under both Linux and Mac OS X. But...
I have run into some problems and I guess it's better to ask than to guess what could be wrong, so here it goes...
I've been tasked at work with creating a simple software that sets up a PS6402A and reads back some values after it has been triggered. The code I wrote seems to work but occasionally I get an error at the exit stating that an area of memory was used after being freed.
I've tried tracing it but it always ends up poiting to the internals of ps6000OpenUnit() and there's way to much inside to be able to tell what's wrong.
That's why I wrote a simple test case that makes this problem appear all the time.
Operating system: Mac OS X 10.10.2 on MacBook Pro 15''.
Compiler (supplied by Apple): Apple LLVM version 6.0 (LLVM 3.5SVN),
Compiler (used to force the error): clang 3.7 from Mac Ports
I think I managed to trigger it on Linux but can't give you definite answer right now as I'm not at work. I will try to reproduce it and give you more details as soon as I can.