• 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
CGDisplayCapture + debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGDisplayCapture + debugging


  • Subject: CGDisplayCapture + debugging
  • From: "CJ Bell" <email@hidden>
  • Date: Wed, 6 Jun 2007 16:31:42 -0700

I'm writing an application which creates a full-screen window (OpenGL)
and uses CGDisplayCapture. However, if Xcode is running in the
captured window and the program breaks into the debugger, the UI
becomes unresponsive. (My program of course freezes and remains above
Xcode so I can't terminate it. The other screens, if present, also
[strangely] stop responding, too). The only solution is to ssh in from
another computer and kill Xcode.

Does anyone have a good way to work around this? (Shouldn't this be
considered a bug in either Quartz or Xcode?). I've considered having a
non full-screen mode but that seems like a bit of work for something
that will never be used aside for debugging. Not all computers I work
on have a second monitor...

Unless I'm doing something strange and wrong, it seems like this would
be an issue for many other developers, too.


Thanks for your time, -CJ



   CGDisplayCapture(currentDisplayID);

   NSOpenGLPixelFormatAttribute attributes[] =
       { NSOpenGLPFADoubleBuffer
       , NSOpenGLPFAAccelerated
       , NSOpenGLPFAColorSize
       , 32
       , NSOpenGLPFADepthSize
       , 32
       , NSOpenGLPFAFullScreen
       , NSOpenGLPFAScreenMask
       , CGDisplayIDToOpenGLDisplayMask(currentDisplayID)
       , 0
   };

[...]

   [openGLContext setFullScreen];

[...breaking into the debugger when it's running in the same screen
causes UI to freeze...]

   CGDisplayRelease(currentDisplayID);
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CGDisplayCapture + debugging
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: can I get the symbol's size from a Mach-O file?
  • Next by Date: Re: CGDisplayCapture + debugging
  • Previous by thread: can I get the symbol's size from a Mach-O file?
  • Next by thread: Re: CGDisplayCapture + debugging
  • Index(es):
    • Date
    • Thread