I've tracked it down a bit. It is erring on the line prior to that, the line
iFormat = ChoosePixelFormat (*hDC, ppfd); > > HGLRC *hRC; > > So hRC is just a pointer, which is not initialised (could be pointing > anywhere)... > > > *hRC = wglCreateContext (*hDC); > > ...and here you store something at where it is pointing, which probably > causes the crash. does wglCreateContext not "initialize" it?
