opengl crash on nt2000 VC 6.0 MFC MDI app using spliiterWnds

opengl crash on nt2000 VC 6.0 MFC MDI app using spliiterWnds

Post by Stephen Fogaras » Sat, 17 Mar 2001 02:45:08

I have a VC++ 6.0 MFC app with MDI interface and splitterWnds in the MDI
Views. in one of the (plit)views I have a OpenGL-enabled View (with pretty
much the same structure as shown in the OpenGL SuperBible book, chapter 21),
all the views using only GDI. While this program ran fine in NT 4.0, on 2000
it crashes on windows creation or destruction (but not consistently). In
debug mode though it consistently crashed in the opengl enabled views
OnDestroy member in a call to wglDeleteContext( m_hGLContext );

I have looked through the msdn bug database, and though there are severla
issues with opengl and mdi, I couldnt see anything to di with this one.

Anyone has similar problem, suggestions, or better yet a solution ?



1. mdlviewer source released (MFC MDI OpenGL app)


For all of you out there that have trouble getting an MDI MFC program
running with OpenGL rendercontexts:

get the sourcecode of my halflife modelviewer (mdlviewer 2.1) from

Its perhaps a light in the dark :)


    Frans Bouma
    aka Otis

2. Driver for Hitachi Tablet

3. Trouble using OpenGL headers in VC 6.0

4. 16 bit color

5. DirectX in MFC MDI app

6. vesa 2.0

7. Win98 MDI VC 5.0 OpenGL Question

8. Want to work on the SGI/Nintendo 64bit game unit?

9. Need help: OpenGL in MFC MDI Application

10. OpenGL & multithreaded MFC/MDI

11. MFC: MDI 4 wndws with OpenGL HOWTO

12. MFC MDI OpenGL Question

13. MFC-MDI OpenGL example wanted...