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
"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
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
"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
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 :)
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
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