|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Frederic Gos (frederic
GOS.DK)Date: Wed Oct 24 2001 - 06:21:44 CDT
As stated previously on this forum, you should NEVER call the
TerminateThread function!! You have to use some kind of interthread
communication so that the thread terminates itself instead. Either via
ExitThread or by simply returning form the main procedure of the thread.
May I ask what you are trying to do to poor VB?? It sounds extremely
dangerous...
cheers
Frederic
-----Original Message-----
From: Jayant Bichhal
To: DCOM
DISCUSS.MICROSOFT.COM
Sent: 24-10-01 13:07
Subject: Terminating a thread...may be through its handle?
i want to terminate a thread ...of the visual basic object
pool.....through
the TerminateThread API function.
I can have the thread id of my thread ...but the terminate thread
requires
the handle .....My crux is this that:
1)can i get the handle of the thread of visual basic appliation or..
2)can i somehow terminate my thread(with or without api function or by
any
means).
please reply and help me....
thanks
cheers
jayant
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]