kCGErrorInvalidConnection : CGSNewWindow: Invalid connection on OS X

Hello,

I am writing a binding of SDL for Haskell and when compiling a simple
test program (just initing video and opening a window) I have a big
error starting with :

kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
2002-12-10 11:34:59.722 test[2695] _NXCreateWindow: error creating
window (1002)
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid
connection
kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
kCGErrorFailure : Failed to create window context device.
kCGErrorFailure : CGWindowContextCreate: failed to create context.
2002-12-10 11:34:59.732 test[2695] _initWithWindowNumber: error
creating graphics ctxt object for ctxt:0, window:-1
kCGErrorFailure : CGContextResetClip: invalid context
kCGErrorFailure : CGContextReplaceTopGState: invalid context
kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current
hide-on-deactivate state
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting client event
mask window property
kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting window event
mask
kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut:
Invalid connection
2002-12-10 11:34:59.748 test[2695] *** _NSAutoreleaseNoPool(): Object
0x1122f20 of class NSCFArray autoreleased with no pool in place - just
leaking
[…]

I use the libSDLMain.a and my main is in C, including SDL.h to be sure
that main is renamed to SDL_main and that the main actually call is the
one from libSDLMain.a.

Anyone has an idea of what the bug can be?

Nicolas.

Hello,

I am writing a binding of SDL for Haskell and when compiling a simple
test program (just initing video and opening a window) I have a big
error starting with :

kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
2002-12-10 11:34:59.722 test[2695] _NXCreateWindow: error creating
window (1002)
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid
connection
kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
kCGErrorFailure : Failed to create window context device.
kCGErrorFailure : CGWindowContextCreate: failed to create context.
2002-12-10 11:34:59.732 test[2695] _initWithWindowNumber: error
creating graphics ctxt object for ctxt:0, window:-1
kCGErrorFailure : CGContextResetClip: invalid context
kCGErrorFailure : CGContextReplaceTopGState: invalid context
kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current
hide-on-deactivate state
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting client
event mask window property
kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting window
event mask
kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut:
Invalid connection
2002-12-10 11:34:59.748 test[2695] *** _NSAutoreleaseNoPool(): Object
0x1122f20 of class NSCFArray autoreleased with no pool in place - just
leaking
[…]

I use the libSDLMain.a and my main is in C, including SDL.h to be sure
that main is renamed to SDL_main and that the main actually call is
the one from libSDLMain.a.

Anyone has an idea of what the bug can be?

Nicolas.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Oups, in fact the bug where elsewhere…
Sorry.