Re: [Pyobjc-dev] import QTKit -> NSRecursiveLock errors
Brought to you by:
ronaldoussoren
From: Orestis M. <or...@or...> - 2009-06-16 15:19:56
|
That's because at the time of the import (when main.m is executed) there's no connection to the window server yet. To get around this, you need to start importing in the 'applicationDidFinishLaunching' stage. If you want to subclass QTMovieView, put it in a different module, and import it in the delegate method. That probably means you can't use it in Interface Builder - you may be able to set it at runtime, but I can't help you there. -- or...@or... http://orestis.gr/ On 16 Jun 2009, at 18:13, Daniel Ashbrook wrote: > Does anybody have an idea on how I can deal with this? I got around > the issue back in April but now am wanting to subclass a QTMovieView. > > Thanks, > > dan > > On Apr 27, 2009, at 12:25p, Daniel Ashbrook wrote: > >> I think I remember there being some discussion of this a while back, >> but couldn't find it. >> >> Try this: >> 1) Make a new Python Cocoa app in Xcode >> 2) In the application delegate, insert the line "import QTKit" >> 3) Run it >> >> I get: >> >> _RegisterApplication(), FAILED TO establish the default connection >> to the WindowServer, _CGSDefaultConnection() is NULL. >> 2009-04-27 12:22:41.794 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.796 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> 2009-04-27 12:22:41.796 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.797 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> 2009-04-27 12:22:41.801 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.801 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> 2009-04-27 12:22:41.804 QTVideoTest2[79402:10b] >> NSInternalInconsistencyException - Error (1002) creating CGSWindow >> 2009-04-27 12:22:41.811 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.812 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> 2009-04-27 12:22:41.812 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.812 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> 2009-04-27 12:22:41.813 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.813 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> 2009-04-27 12:22:41.814 QTVideoTest2[79402:10b] *** - >> [NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x1c57730> >> '(null)') unlocked when not locked >> 2009-04-27 12:22:41.815 QTVideoTest2[79402:10b] *** Break on >> _NSLockError() to debug. >> >> This is particularly frustrating as, in my real project, I am trying >> to make a subclass of QTKit.QTCaptureView; however, I can't, as >> importing yields the above errors. >> >> >> dan > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |