My code is pretty simple. I’m basically calling
okCFrontPanelDevices_HANDLE hFPDevices;
okError* err;
hFPDevices = okFrontPanelDevices_Construct("", &err);
if (!hFPDevices) {
fprintf(stderr, "%s\n", okError_GetMessage(err));
okError_Free(err);
return;
}
else {
fprintf(stdout, "Number of connected FrontPanel devices: %d\n", okFrontPanelDevices_GetCount(hFPDevices));
}
The first time I run, I get some wild count (eg -299688811)
the second time, I get an error: Failed to register window class.
Any ideas what’s going on?