View Full Version : opengl program canna run

06-30-2003, 11:49 PM
when running the opengl programms,
windows pop a message:
application initialization fails(0xc0000142),
press "ok" to halt it.

i analyzed it,and found that the problem caused by the wgl* functions.

i don't know why.
i expect anybody can help me, thanks a lot

07-01-2003, 12:10 AM

07-01-2003, 12:29 AM
before i had reinstalled it,
everything was all right.
i donna know whether the problem is opengl driver or windows gdi dll

Originally posted by Mihail121:

07-01-2003, 01:37 AM
The Opengl programs?

What programs, ones you've written? Or ones that aren't relevant to this list (ie. Ones you haven't written).

The wgl* functions?

A specific wgl function or is it different every time? If you're actually the author of the problem code are you initializing your extensions?

07-01-2003, 08:40 PM
opengl programs written in msvc.
any opengl programms i've written and
others have written.
the programs halted by the invokes of
wglcreatecontext() or some other wgl*(
i've not try all wgl*).
the problem occurred even when i've not
invoke the function which invokes the wgl*.
anything was all right at compiling and
linking, just run-time error.

07-01-2003, 10:39 PM
Originally posted by ywwlinux:
before i had reinstalled it,
everything was all right.

Probably a driver problem then? Did you apply the same SP as you had previously, and the same gfx driver version? Also check MSVC service pack level.