Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MeNoThere

OGL hates me... wglMakeCurrent crashes app

This topic is 5501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I downloaded lesson 1 from NeHe and it crashes when wglMakeCurrent gets called in the CreateGLWindow function. It seems to happen with all of the tutorials at NeHe. I upgraded my graphics card drivers to detonator 44.03, but it still doesn''t work... *cries* I''m running Windows 2000 Pro with SP3 and a dozen or so hotfixes.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
just wondering but Are you speaking of the *.exe''s that are in the zips or the ones that you are compiling form code you write/use

Share this post


Link to post
Share on other sites
if u are talking about the .cpp code of the tutorials and,if u are compiling it on the VS .NET,then i put an help that (i think) can resolve the problem) search in ..::Help to NewBies::..

what happen?LNK2019 ???

_,,,^Ó..ò^,,,_

Share this post


Link to post
Share on other sites
quote:
Original post by KosmiC_Khaoz
if u are talking about the .cpp code of the tutorials and,if u are compiling it on the VS .NET,then i put an help that (i think) can resolve the problem) search in ..::Help to NewBies::..

what happen?LNK2019 ???

_,,,^Ó..ò^,,,_



As I understand his problem, his program crashes but compiles .

PS: Linking errors existed in VS 6 too, you know...

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
Didn''t you modify the code at all? Did you run the included .exe file or did you compile it?

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
Actually, I''m using visual basic... plz dont laugh, lol I tried running the code from the ide and using the *.exe from the visual c++ zip file. Neither work.

Share this post


Link to post
Share on other sites
i didn't understand,u are compiling C++ code on VB? or u run *.exe of the C++ zip file and compile the VB file?

what's ur video card?

my english suck's sorry...

_,,,^Ó..ò^,,,_

[edited by - KosmiC_Khaoz on July 28, 2003 2:13:14 PM]

Share this post


Link to post
Share on other sites
I compiled the VB version of lesson 1''s source code. It compiles fine but when wglMakeCurrent gets executed my program crashes. I also tried running the exe that comes with the c++ code, and it crashes too.

c++ code: http://nehe.gamedev.net/data/lessons/vc/lesson01.zip
vb code: http://nehe.gamedev.net/data/lessons/vb/lesson01.zip

Share this post


Link to post
Share on other sites
By chance do you use a Voodoo3 3000? On my old computer, I would have this happen about 25% of the time, but only the first time it was called. The crash was completely random (and horrible).

My only suggestion is to call it with invalid parameters the at the very begining of your program. Possibly this will not lock up and all subsequent calls to it may work correctly assuming it will only crash the first time its called. good luck....

Share this post


Link to post
Share on other sites
Err... He is using a nVidia card. He said he downloaded the detonator drivers.

Edit: Just get Visual C++ and try to compile the code, if it doesn't work than it is your system. You can reinstall Windows, get a new video card, if it doesn't work than get a new computer, lol .

"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

[edited by - shlomisteinberg on July 29, 2003 1:04:54 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!