Re: [Pyobjc-dev] Web Services Tool example broken
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2004-04-05 21:27:36
|
On Apr 5, 2004, at 4:53 PM, Paul Donovan wrote: > I've been getting pyobjc from CVS over the last few days, and noticed > that the thread in my test app doesn't work any more. I copied the > thread code from the Web Services Tool example, so I checked that, and > it doesn't work either. In my case, the worker thread starts but never > finishes its task. > > Just guessing, but it seems that the recent checkins of fixes for DO > and NSProxy stuff have broken this. I have no idea how to reasonably debug that example, it freely mixes ObjC and Python threading code. It's not even correct for at least one reason: it doesn't detach an NSThread anywhere, so Foundation and Cocoa are not notified to be thread safeish. Even though it did work previously, that might have been by accident. What does your application actually do? Chances are, there is a single threaded (as far as Python is concerned, at least) approach you can take that will have higher performance and be easier to debug. -bob |