Results 1 to 4 of 4

Thread: Device Context

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Bolton, United Kingdom
    Posts
    26

    Device Context

    I've noticed that if I terminate my OpenGL application by aborting it from the task manager - or if it crashes ... then I find that the next time an OpenGL program is run, the drawing canvas context seems a little odd ... and results in overwriting any other active window ... I've checked and double checked my context assignments and they look alright and certainly if my program terminates correctly then I don't experience this problem ... so the destructor code to release my assigned DCs is OK.

    Am I missing something in my initialization or is this effect to be expected after failure to release and delete assigned contexts ?

    Many thanks

    Andrew

  2. #2
    Guest

    Re: Device Context

    Perhaps does it depends on the Windows version but I think that the effect is to be expected. A typical problem when developing a program that crashes is that the video memory for textures is not returned making the program runs slower and slower.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Bolton, United Kingdom
    Posts
    26

    Re: Device Context

    Hi Zico,
    Thanks for your response ... I'd kind of concluded that this was the case but it's just that I needed some reassurance that this effect might have been due to some slight oversight. Yes ... dead right about those textures ... does get slower and slower if they're not released ... is there any way to reset the card in any way ?

    Thanks

    Andrew

  4. #4
    Guest

    Re: Device Context

    The only way I know of is to restart Windows...

Similar Threads

  1. Which CL device for GL context?
    By Dark Photon in forum OpenCL
    Replies: 0
    Last Post: 04-26-2011, 10:26 AM
  2. one device, no cpu and no context
    By the_dude in forum OpenCL
    Replies: 1
    Last Post: 12-13-2010, 10:58 AM
  3. Getting the Device Context
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-25-2002, 05:47 AM
  4. can't get a device context
    By Ethan in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-14-2001, 05:49 PM
  5. Open GL Device Context and VB
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-14-2001, 01:39 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