I am trying to capture a screen shot at regular interval. My code is able to do so however while running this program if I change the user (using fast user switching) to log in to a different account and after a while return back to the previous user running the screen capture program, I notice that my program failed from the point I switched to a different user. Upon further inspection and debugging I noticed that CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay) is giving an Invalid Value as one of the attributes for
NSOpenGLPixelFormatAttribute. Could anyone here help me in solving this issue?
NSOpenGLPixelFormatAttribute. Could anyone here help me in solving this issue?