I'm getting these error messages from by PyObjC (version 1.0) application:
PyObjCPointer created: at 0x208aaa0 of type
{_NSModalSession=@@^{_NSModalSession}iciI^vi@@:^vi}
*** malloc[1763]: error for object 0x379174: Non-aligned pointer being freed
The offending code is:
alertPanel = None
modalSession = None
application = MyApp.Application # bound to "File's Owner" in
InterfaceBuilder
try:
alertPanel = NSGetInformationalAlertPanel("Please wait", None, None,
None)
modalSession = application.beginModalSessionForWindow_(alertPanel)
...other code...
finally:
if modalSession != None:
application.endModalSession_(modalSession)
modalSession = None
if alertPanel != None:
NSReleaseAlertPanel(alertPanel)
alertPanel = None
I posted this earlier in the summer, but did not get a response - I had
hoped that the 1.0 release would fix it, but it did not.
Am I using the modal code correctly with PyObjC? How do I avoid this error?
Many thanks,
Bob Swerdlow
COO
Transpose
rsw...@tr...
207-781-8284
http://www.transpose.com
----------------------------------
Fight Spam!
Add this link to your signature (as I did): http://wecanstopspam.org
Click through to find out more.
----------------------------------
|