• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
drawrect not being called after a random time in NSOpenGLView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

drawrect not being called after a random time in NSOpenGLView


  • Subject: drawrect not being called after a random time in NSOpenGLView
  • From: Jorge Arroyo <email@hidden>
  • Date: Mon, 29 Mar 2004 23:37:36 +0200

Hello,

I'm really going nuts with this one. I've looked at the archives and over the documentation, but cannot find a solution. Also it's hard to debug, so any clues on how to solve or debug this issue will be greatly appreciatted. At first I thought it was just a problem when I was debugging the app, but it happens no matter how I compile and run it...

I have a custom NSOpenGLView in a window I create from a controller object. Sometimes it's full screen and sometimes not, but the problem is the same no matter what...

I override drawrect to perform all the opengl drawing and have a second thread for all the calculations that callls [self display] at the end of each cycle. (I also tried [self setNeedsDisplay:YES] with the same results)

When I run the app everything starts ok, but at some point drawrect stops being called. Sometimes it takes a few seconds, sometimes it may take 30 minutes or more, but eventually it happens. And it happens without any interaction on my part with the app. The result is that the image is frozen still.

I've checked with Quartz Debug, and the window is being updated with the outdated drawing regularry. Also, the rest of the app keeps running without any problems, it just doesn't call drawRect.... Also, the pixel format and opengl context seem to be still there (from what I see in the debugger)

Any suggestions on how to go on or where the error might be, or just clues on what can cause such problems will be greatly appreciated.

Thanks,

-Jorge Arroyo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Detecting a paste operation in NSTextView
  • Next by Date: Converting ASCII to UTF-8?
  • Previous by thread: Re: Photoshop bug,while importing images - Is anyone from Apple listening?
  • Next by thread: Converting ASCII to UTF-8?
  • Index(es):
    • Date
    • Thread