george fazekas rwbdbaheagaffelecqmulacuk hi im working embedding python multi threaded application found mostly old confusing info anyone point right direction send working examples detail python 251 macosx leopard 1051 using pytohnc api application initializes python shared library turn links libraries may may use c api commands parallel generally works fine two libraries try access python code get seg fault similar closest got resolve based message httpgroupsgooglefigroupcomplangpythonmsgfe4e114d1e1a741d suggests starting new sub interpreter task however still get errors like thread 0 works fine according docs pyobject_hasattrstring always succeeds dont understand happens also get thread mixup messages randomly even though double checked implementation 2 threads accessing python thread 0 crashed 0 orgpythonpython 0x15a58bcc pyerr_occurred 16 errorsc77 1 orgpythonpython 0x159c642c instance_getattr 277 classobjectc698 2 orgpythonpython 0x159f789b pyobject_hasattrstring 116 objectc1069 thread 4 running process thread 4 0 orgpythonpython 0x15a43751 pyeval_evalframeex 794 cevalc852 1 orgpythonpython 0x15a49cdc pyeval_evalcodeex 1819 cevalc2831 2 orgpythonpython 0x159df537 function_call 320 funcobjectc517 3 orgpythonpython 0x159be278 pyobject_call 45 abstractc1860 4 orgpythonpython 0x159c5ee5 instancemethod_call 401 classobjectc2497 5 orgpythonpython 0x159c297c pyobject_callmethodobjargs 223 abstractc1860 thanks advice george _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom tue 29 jul 2008 042326 0000 pythondev embedding multi threaded cc