[Pyobjc-dev] [ pyobjc-Bugs-828911 ] Non-aligned pointer being freed
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-10-23 22:56:54
|
Bugs item #828911, was opened at 2003-10-23 09:11 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=828911&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bob Swerdlow (swerdlow) Assigned to: Nobody/Anonymous (nobody) Summary: Non-aligned pointer being freed Initial Comment: Ronald Oussoren requested that I file this bug in response to a message on pyobjc-dev: ------------------------------------------------- I'm getting these error messages from my 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=828911&group_id=14534 |