Jump to content
  • Advertisement


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


Debugging Nehe's IPicture Code

This topic is 5528 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''m in the process of writing a program that utilizes Nehe''s IPicture code (in VC++ 6.0)... Ever since I started using the IPicture code, when I debug my program, I crash out with an "Unhandled exception in Game1.exe (NVOPENGL.DLL): 0xC00001D: Illegal Instruction." I opened the workspace provided with Nehe''s IPicture code and ran it in debug mode. It did the same thing (except replace "Game1.exe" with "Nehe_IPicture.exe" in the error message)... Any ideas about what might be causing this and how to prevent it? Thanks in advance. Tarindel

Share this post

Link to post
Share on other sites
Try setting a breakpoint and stepping through the code to see which line it blows up on.

K-1 Productions: Come visit us here.

Share this post

Link to post
Share on other sites
It occurs when the following two step sequence happens:

1) The line "HRESULT hr = OleLoadPicturePath(...)" in BuildTexture() is called.
2) It hits the first GL drawing/transformation command. This is where it actually crashes. If line #1 is not called (function is forced to an early return before that line), #2 does not crash.

In my program, #2 is a gluLookAt(). In Nehe's IPicture example, it's the first glTransform() in Draw().

As a side note, I made sure pPicture->Release() was called when I early returned BuildTexture().

I'm running Windows 98.

PS: if I call BuildTexture() before I even create my GL Window, it still crashes out with the same problem. So it doesn't appear to be a problem with the GL window/context getting roasted somehow...

[edited by - Tarindel on October 22, 2003 10:32:35 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!