Re: Question: Threading and embedding python in an application

2005-05-10 Thread David Harrison
Thanks very much for the responses. I did indeed look carefully at the code I was using for threading and didn't see anything obvious. I include the python excerpt below. For small values of lMax, things seem to work as expected. Larger values seem to cause the thread to either hang or termin

Re: Question: Threading and embedding python in an application

2005-05-10 Thread Mike Meyer
David Harrison <[EMAIL PROTECTED]> writes: > I am working on an application on Mac OS X that calls out > to python via PyImport_ImportModule(). I find that if > the imported module creates and starts a python thread, > the thread seems to be killed when the import of > the module is complete. I

Re: Question: Threading and embedding python in an application

2005-05-09 Thread "Martin v. Löwis"
David Harrison wrote: > I am working on an application on Mac OS X that calls out > to python via PyImport_ImportModule(). I find that if > the imported module creates and starts a python thread, > the thread seems to be killed when the import of > the module is complete. Is this expected? No

Question: Threading and embedding python in an application

2005-05-09 Thread David Harrison
I am working on an application on Mac OS X that calls out to python via PyImport_ImportModule(). I find that if the imported module creates and starts a python thread, the thread seems to be killed when the import of the module is complete. Is this expected? Does python have to be in control t