I’m experimenting with some of the sdk examples, in specific the opengl one, trying to learn from through it.
For now I’m using the example class FramePresenterGL which is provided in the sdk example for the opengl use and it all work fine (I decode using cuda, print to screen using the FramePresenterGL, then deleting FramePresenterGL object) until I try to open a new FramePresenterGL object, which cause my program to crash.
The crash occurs at line:
static void FGAPIENTRY FGUNUSED glutInit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }
with the error:
Unhandled exception at 0x00007FF8CE6ED979 (ntdll.dll) in DebugApp.exe: 0xC0000005: Access violation writing location 0x0000000000000024.
Is there anything I’m missing? should I do something before I destroy the object to prevent this behavior?