Colin Fahey
2002-09-29 19:13:17 UTC
2002 September 29th
Sunday
I compiled an OpenGL program under Windows 2000 with
Visual Studio .NET, and then I tried to execute under
Windows 98...
Everything works, except the code hangs on the following
call:
wglMakeCurrent( hDC, hRC )
I'm stumped. The DC and RC handles look okay.
If I don't do full-screen mode, EVERYTHING works,
including the wglMakeCurrent(...) call.
Okay, I'd have to do some research to figure out
the exact difference between the full-screen start-up
code path and the windowed mode code path.
But I wonder if anyone might know of a reason
why wglMakeCurrent(...) would HANG. I can
wait for a long time, and it just doesn't make it
to the next instruction.
I'm sorry for not describing the code in more detail,
but I'm hoping someone will know right away that
either wglMakeCurrent(...) should NEVER block for
any significant amount of time, or there is something
that definitely will cause wglMakeCurrent(...) to
block indefinitely (like starving some Windows
message loop, or something crazy like that).
--- Colin
***@earthlink.net
-----
FAQ and OpenGL Resources at:
http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
--
Author: Colin Fahey
INET: ***@earthlink.net
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ***@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Sunday
I compiled an OpenGL program under Windows 2000 with
Visual Studio .NET, and then I tried to execute under
Windows 98...
Everything works, except the code hangs on the following
call:
wglMakeCurrent( hDC, hRC )
I'm stumped. The DC and RC handles look okay.
If I don't do full-screen mode, EVERYTHING works,
including the wglMakeCurrent(...) call.
Okay, I'd have to do some research to figure out
the exact difference between the full-screen start-up
code path and the windowed mode code path.
But I wonder if anyone might know of a reason
why wglMakeCurrent(...) would HANG. I can
wait for a long time, and it just doesn't make it
to the next instruction.
I'm sorry for not describing the code in more detail,
but I'm hoping someone will know right away that
either wglMakeCurrent(...) should NEVER block for
any significant amount of time, or there is something
that definitely will cause wglMakeCurrent(...) to
block indefinitely (like starving some Windows
message loop, or something crazy like that).
--- Colin
***@earthlink.net
-----
FAQ and OpenGL Resources at:
http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
--
Author: Colin Fahey
INET: ***@earthlink.net
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ***@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).