Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: wglDeleteContext - int 3 exception breakpoint

  1. #1
    Junior Member Newbie
    Join Date
    May 2004
    Posts
    2

    wglDeleteContext - int 3 exception breakpoint

    Greetings,

    My OpenGL application doesn't close properly. When I close the program, I get a message box pops up that says "User breakpoint called from code at 0x77f75a58". After I click "ok", the program is at a breakpoint that in assembly code is

    77F75A58 int 3

    This happens when I call wglDeleteContext. The code in my destructor is:

    wglMakeCurrent(hdc, NULL);
    wglDeleteContext(hrc); // Problem

    I've checked the values of hdc and hrc and they look valid. Any thoughts?

    Thanks,
    Slammo

  2. #2
    Advanced Member Frequent Contributor plasmonster's Avatar
    Join Date
    Mar 2004
    Posts
    750

    Re: wglDeleteContext - int 3 exception breakpoint

    Try changing the make current call to this:
    wglMakeCurrent( 0, 0 );

  3. #3
    Junior Member Newbie
    Join Date
    May 2004
    Posts
    2

    Re: wglDeleteContext - int 3 exception breakpoint

    Thanks for the quick reply, Portal!

    Hmmm, I tried your suggestion -- same problem. Since the code looks good to me, I thought maybe it was a driver issue. So I downloaded the latest drivers for my video card and voila, it works fine!

    Best,
    Slammo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •