Hi, What is the best way to protect my app from crashes if something went wrong in a PyRun_SimpleString call.
I get (very few) crash reports like the on below. Does someone know what is going on? This happened with 10.6.2. Thanks Georg Application Specific Information: Assertion failed: (autoInterpreterState), function PyGILState_Ensure, file Python/pystate.c, line 577. Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x9784d732 __kill + 10 1 libSystem.B.dylib 0x9784d724 kill$UNIX2003 + 32 2 libSystem.B.dylib 0x978e098d raise + 26 3 libSystem.B.dylib 0x978f6a44 abort + 93 4 libSystem.B.dylib 0x978e35ec __pthread_markcancel + 0 5 org.python.python 0x000ebfda PyGILState_Ensure + 66 6 _objc.so 0x12f3c767 PyObjC_encodeWithCoder + 10348 7 com.apple.CoreFoundation 0x9765a528 CFRelease + 152 8 com.apple.CoreFoundation 0x976870ed _CFAutoreleasePoolPop + 253 9 com.apple.Foundation 0x92c37dd6 NSPopAutoreleasePool + 76 10 com.apple.Foundation 0x92c37cfe -[NSAutoreleasePool drain] + 130 11 com.apple.AppKit 0x9497055f -[NSApplication run] + 1013 12 com.apple.AppKit 0x94968535 NSApplicationMain + 574 13 com.GeorgSeifert.Glyphs 0x00002348 main + 24 14 com.GeorgSeifert.Glyphs 0x000022f6 start + 54 _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig