PDA

View Full Version : wglMakeCurrent problem



cursor
05-05-2001, 03:08 PM
I Have problems with this instruction, when my program do this instruction send the next message:
The instruction at "any direction" referenced memory at "0x00000000". The memory could not be "written".

I don't understand the problem.

Thank for any help.

Korval
05-05-2001, 05:25 PM
Check you pointers. Something you're passing around and trying to write to is NULL.

cursor
05-06-2001, 02:55 PM
My problem is more complicate.
I have Win NT 4.0 SP6 and my video is a Voodoo3 3000.

In another PC the same application run good.
This PC have Windows 2000 Professional and the video is a Asus 7700 GForce 2 Ultra.

But, in the NT when I review the values I have the next.
DC (HDC) = 2281769321 or anhoter correct value.
oprc (HGLRC) = 65536 every time.

oprc I take from wglCreateContext(DC).

I think my problem are the DLLs of Open GL

I preciate any information.

Deiussum
05-07-2001, 05:48 AM
Post your section of code for setting up the PixelFormat stuff. That'd probably help us see the problem a lot quicker.