Hello,
I am rendering an OpenGL application within MFC CFormView dialog, starting with an example found on this forum. It runs well while the program is running but when i close the dialog box (hence the program) an assertion error appears:
Given the shutdown context, it looks as if your destructor is 'delete’ing or 'free’ing pUserData, and pUserData either a) is null, b) has never been initialized and points to somewhere random or, most likely, c) has already been 'delete’d.
Disclaimer: this is an MFC error rather than an OpenGL one, and I haven’t looked at MFC for about 8 years. You’d probably have more luck on an MFC forum.