Re: [Pyobjc-dev] Crashing screensaver engine
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2006-01-27 18:40:12
|
Dethe, Something very fishy: when I change configureSheet to the version below the sheet won't close again when I open it a couple of times: def configureSheet(self): if not PastelsView._configureSheet: PastelsView._configureSheet = PastelsPreferencesWindow.alloc().initWithFrame_((316,158)) PastelsView._configureSheet.retain() return PastelsView._configureSheet When I change it to the version below SystemPreferences crashes as soon as I close the sheet for the first time: def configureSheet(self): return PastelsPreferencesWindow.alloc().initWithFrame_ ((316,158)) Ronald P.S. Running on 10.4.4 with a recent checkout of PyObjC. On 27-jan-2006, at 18:33, Dethe Elza wrote: > (reposting, originally posted on pythonmac-sig) > > Hi folks, > > I'm trying to write an example screensaver in PyObjC which is a bit > more complex than the existing example. One of the things I've added > is a sheet to configure the screensaver. I'm doing something wrong > there (was doing more things wrong, but I found some of them) and the > screensaver engine is crashing. There don't appear to be any harmful > side effects from this--my configuration changes are persisted, and > the screensaver runs fine, but I want to fix this before I post the > code. > > The code itself is all in one file (including setup script) here: > > http://livingcode.org/temp/pastels.txt (rename to pastels.py and run > python pastels.py py2app to build) > > and the latest crash log is here: > > http://livingcode.org/temp/screensaver_crash.log > > Any hints as to what I'm doing wrong would be very appreciated. > Thanks! > > --Dethe > > When laws are outlawed, only outlaws will have laws. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |