I'm having a little trouble using this function (from cbw32.lib). The line I'm using is:
ADData = (WORD*)cbWinBufAlloc(NUMPOINTS * NUMCHANS * SIZE);
where NUMPOINTS, NUMCHANS, and SIZE are #defined
as 2, 10000, and 31 respectively.
Every time I call this function it returns 0, even if I change the input parameter to 31 (so insufficient available memory shouldn't be an issue). All documentation I've seen for this function just says that it returns 0 if it doesn't work, but doesn't explain what "it doesn't work" means or how I might fix it.
To confuse things even more, this works fine on another computer with a similar setup.
Any ideas what might cause this?