Hi, I have been trying to use floating point pixel buffers for a few weeks now, pretty unsuccessfully. My latest venture involves a main app that is in win32 invoking a class that has a fpbuffer as a member. Compilation goes without any probems, unfortunately when I execute the program I get “Unhandled Exception in myprogram.exe: 0xC0000005: Access Violation”
This error occurs right after the call wglChoosePixelFormatARB(hWindowDC, attribList, NULL, 1, &format, &nformats);
This line is in the fpbuffer class implementation. hWindowDC is set using
hWindowDC = wglGetCurrentDC();
presumably if wglGetCurrentDC() fails hWindowDC should be NULL, however if I try to look at its value in the debugger I get a
CXX0017: Error: symbol “hWindowDC” not found
, which is strange because it is declared before the call.
The same PBuffer class works fine in an nVidia demo so I have to assume it is failing to find an appropriate device context… can anybody help me with this?
thanks,