I've made a program in Visual Studio, it's a gui meant to control a camera and the functions of it that my problem rotate about are the functions to open and close the link to the camera. The program seems to run but when I run the program outside visual studio(I double click on it in explorer) and open the camera the release version just closes and the debug version tells me a debug assertion failed,
Expression: _CrtIsValidHeapPointer(pUserData)
I'm not sure how to debug this because it runs fine in visual studio.
I'm kind of stumped and I hoped somebody could nudge me in the right direction based on this information. If I post the relevant code it'll be lengthy and it'll make many references other parts of code, and you might need to know something about pixci cameras.