Calling as follows
- Code: Select all
m_handle = ps2000_open_unit();
short infoLength = 0;
desiredInfoLine = PS2000_DRIVER_VERSION;
ps2000_get_unit_info(m_handle, infoString, infoLength, desiredInfoLine);
Visual Studio 2010 SP1, Win32.
Steps to reproduce.
Create new c++ project.
copy and paste in the code I have above.
Insert breakpoint on the ps2000 line call.
step over that line and it stops execution and debug mode just returns.
For me, just before the call, handle is always 1.
Is there bad documentation for this call in the developers guide? (which doesn't mention that the caller is responsible for allocating the response string (as you can see, I am), and also doesn't mention what the limits on the size of that string should be)
I've really taken all paths to resolve this one and am clueless.