RE: Thread termination

2006-10-17 Thread Stefan Schukat
October 16, 2006 9:47 AMTo: Stefan SchukatSubject: Re: Thread termination HI all, I have a problem in accesing COM objects in threads. To be precise, lets assume that I have a class GenericFunctions which is defined as follows: import win32com.client, pythoncom, th

Re: Thread termination

2006-10-14 Thread Hendrik van Rooyen
"Nick Craig-Wood" <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > > can't be done from outside without co operation of thread in question. > > google this newsgroup > > Hopefully google will discover also the thread where the above statement is > proved to be false

Re: Thread termination

2006-10-14 Thread Nick Craig-Wood
Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > can't be done from outside without co operation of thread in question. > google this newsgroup Hopefully google will discover also the thread where the above statement is proved to be false ;-) This might be a useful thing to search for... ctypes

Re: Thread termination

2006-10-13 Thread Hendrik van Rooyen
"Teja" <[EMAIL PROTECTED]>wrote: > Hi all, > > Does any one know how to terminate or kill a thread that is started > with "start_new_thread()" in the middle of its execution? > > Any pointers? > > Thanks in advance > > Teja. can't be done from outside without co operation of thread in questi

Re: Thread termination

2006-10-13 Thread Diez B. Roggisch
Teja schrieb: > Hi all, > > Does any one know how to terminate or kill a thread that is started > with "start_new_thread()" in the middle of its execution? > > Any pointers? This has been discussed a bazillion times in this NG. The short answer is: no. For the long answer: do some googling :)

RE: Thread termination

2006-10-13 Thread Stefan Schukat
Reading from your last posts you are using COM objects. Therefore you should not "kill" the thread since this would lead to reference leaks. So there are only two ways left: 1. Program a specific interpreter and not use python.exe which implements an access to PyThreadState_SetAsyncExc 2. Check in

Re: Thread termination

2006-10-13 Thread Aidan Steele
G'day,As far as my understanding pertains, the thread dies shortly after the function returns (ends). You can call "return" anywhere within the function and kill the thread in the middle of its execution.On 13 Oct 2006 02:38:28 -0700, Teja <[EMAIL PROTECTED]> wrote: Hi all,Does any one know how to