Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to kill a thread from DllMain Pin
Nemanja Trifunovic26-Jul-02 8:57
Nemanja Trifunovic26-Jul-02 8:57 
GeneralRe: How to kill a thread from DllMain Pin
Rama Krishna Vavilala26-Jul-02 9:02
Rama Krishna Vavilala26-Jul-02 9:02 
GeneralRe: How to kill a thread from DllMain Pin
Nemanja Trifunovic26-Jul-02 9:42
Nemanja Trifunovic26-Jul-02 9:42 
GeneralRe: How to kill a thread from DllMain Pin
Rama Krishna Vavilala26-Jul-02 9:51
Rama Krishna Vavilala26-Jul-02 9:51 
GeneralRe: How to kill a thread from DllMain Pin
Nemanja Trifunovic26-Jul-02 10:11
Nemanja Trifunovic26-Jul-02 10:11 
GeneralRe: How to kill a thread from DllMain Pin
Daniel Lohmann27-Jul-02 7:06
Daniel Lohmann27-Jul-02 7:06 
GeneralRe: How to kill a thread from DllMain Pin
Nemanja Trifunovic27-Jul-02 17:49
Nemanja Trifunovic27-Jul-02 17:49 
GeneralRe: How to kill a thread from DllMain Pin
Daniel Lohmann28-Jul-02 12:12
Daniel Lohmann28-Jul-02 12:12 
Nemanja Trifunovic wrote:
As I said in my original post, I have tried that already, but it just doesn't work: the bloody thread just won't end while any other thread is in DllMain even if DLL_THREAD_DETACH notification is disabled.

Ehm, you said this in your original post??? Confused | :confused:

However, it is really sad that it does not work. Seems that the system uses internally a process wide Mutex/CS that has to be passed during ExitThread - regardeless if the tread afterwards calls DLLMain or not Frown | :-(

I frequently get the feeling that this "only one thread in DLLMain at a time" thing brings us more headaches than it solves. Better teach developers to deal gracefully with concurrency and let them do the things on their own!

--

Daniel Lohmann

http://www.losoft.de
Generalfailed to create empty document!!! Pin
nss26-Jul-02 8:24
nss26-Jul-02 8:24 
GeneralRe: failed to create empty document!!! Pin
Anonymous26-Jul-02 8:33
Anonymous26-Jul-02 8:33 
GeneralRe: failed to create empty document!!! Pin
ns26-Jul-02 8:58
ns26-Jul-02 8:58 
GeneralThanks!!! Pin
ns26-Jul-02 9:06
ns26-Jul-02 9:06 
GeneralRe: Thanks!!! Pin
Anonymous26-Jul-02 9:48
Anonymous26-Jul-02 9:48 
GeneralProblem Pin
Kashif Gulzar26-Jul-02 8:19
Kashif Gulzar26-Jul-02 8:19 
GeneralRe: Problem Pin
lucy26-Jul-02 9:24
lucy26-Jul-02 9:24 
GeneralRe: Problem Pin
Ken Mazaika26-Jul-02 18:18
Ken Mazaika26-Jul-02 18:18 
Generalm_bAutoDelete and doc class Pin
nss26-Jul-02 8:09
nss26-Jul-02 8:09 
GeneralRe: m_bAutoDelete and doc class Pin
perlmunger26-Jul-02 18:58
perlmunger26-Jul-02 18:58 
GeneralRe: m_bAutoDelete and doc class Pin
nss26-Jul-02 19:59
nss26-Jul-02 19:59 
GeneralNewbie: Referencing several controls Pin
26-Jul-02 7:37
suss26-Jul-02 7:37 
GeneralRe: Newbie: Referencing several controls Pin
Chris Losinger26-Jul-02 8:04
professionalChris Losinger26-Jul-02 8:04 
GeneralRe: Newbie: Referencing several controls Pin
26-Jul-02 8:45
suss26-Jul-02 8:45 
GeneralRe: Newbie: Referencing several controls Pin
Joel Lucsy26-Jul-02 18:24
Joel Lucsy26-Jul-02 18:24 
Generalpopulating a multiline edit, or Crichedit Pin
nss26-Jul-02 7:28
nss26-Jul-02 7:28 
GeneralRe: populating a multiline edit, or Crichedit Pin
nss26-Jul-02 7:51
nss26-Jul-02 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.