Results 1 to 5 of 5

Thread: GPF in wglMakeCurrent()

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2000
    Posts
    3

    GPF in wglMakeCurrent()

    Hi folks. I'm brand-spanking new to OpenGL, trying to gauge difficulty level. The suits want something "whiz-bang" on the splash screen.

    I dl'ed NeHe's tutorial #1 ( http://nehe.gamedev.net/tutorials/lesson01.htm ) and ran the code in Visual Studio - it GPFs in DCIMAN32.DLL on the wglMakeCurrent() call. It's pretty ugly, I get the old school 16-bit warning of errors and unstability then the 32-bit GPF notification. If I'm running from within VS it locks the entire system, forcing a reboot. Is there a common problem that I'm running into?

    I'm running Win95 OSR2.5, IE5, VS6SP3, with a Diamond Viper Ultra TNT2.

    And since I'm posting, I'll ask opinions too - is OpenGL worth the trouble for "whiz-bang-ness" on a splash screen? I want something simple that I can do in a few days, adding as few new redistributable requirements as necessary. (my reason for looking into OpenGL before DirectDraw) Am I on the right track, or am I smoking crack?

    [This message has been edited by JJ (edited 06-12-2000).]

  2. #2
    Member Contributor
    Join Date
    Jun 2000
    Posts
    67

    Re: GPF in wglMakeCurrent()

    Could it be that GL doesn't work so hot under Win95??

  3. #3
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Batavia, NY, 14020
    Posts
    234

    Re: GPF in wglMakeCurrent()

    Be certain your making current a valid DC. That seems to be where your problem is.

    Siwko
    - I am not opensource! -

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2000
    Posts
    3

    Re: GPF in wglMakeCurrent()

    I've checked both the device context and the rendering context immideately before the call to wglMakeCurrent(). Neither are NULL, and both contain the values returned from GetDC() and wglCreateContext(), respectively.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: GPF in wglMakeCurrent()

    Well, I've crashed upon GL initialization before and it was due to an incompatible window style. Don't know if this your problem, but you might want to check that.

Similar Threads

  1. wglMakeCurrent
    By sammie381 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 11-03-2008, 12:01 AM
  2. wglMakeCurrent() ???
    By andreasMank in forum OpenGL: Windows
    Replies: 1
    Last Post: 04-16-2004, 04:08 PM
  3. wglMakeCurrent in W2K/XP
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-07-2002, 12:31 PM
  4. wglMakeCurrent
    By 26hex in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-21-2001, 07:13 PM
  5. wglMakeCurrent
    By DUMEZ in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 06-27-2000, 01:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean