Click here to Skip to main content
16,004,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok1-Dec-05 23:24
ThatsAlok1-Dec-05 23:24 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
PanB1-Dec-05 23:27
PanB1-Dec-05 23:27 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok2-Dec-05 0:55
ThatsAlok2-Dec-05 0:55 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
PanB2-Dec-05 1:01
PanB2-Dec-05 1:01 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok2-Dec-05 1:12
ThatsAlok2-Dec-05 1:12 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Blake Miller2-Dec-05 6:18
Blake Miller2-Dec-05 6:18 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok4-Dec-05 17:55
ThatsAlok4-Dec-05 17:55 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Blake Miller5-Dec-05 6:01
Blake Miller5-Dec-05 6:01 
I knew what your intention was, you just should not use FindWindow, and I thought you already knew that.

It is well-documented in the literature that FindWindow sends a WM_GETTEXT to all the windows it searches. If you encounter a window that has a stalled message loop, then your application will hang as well. And then if ANOTHER progrma does FindWindow, then guess what, it stalls when it gets to your application, and so on, and so on. Microsoft no longer recommends using that functon UNLESS you are only searching by the window's class name, which does not use the WM_GETTEXT method call.

These articles discuss the problem:

http://www.codeproject.com/dialog/messagemgmt.asp[^]

This one especially:

http://www.developerfusion.co.uk/show/1716/5/[^]

Another:

http://blogs.msdn.com/oldnewthing/archive/2003/8/21.aspx[^]
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok5-Dec-05 17:34
ThatsAlok5-Dec-05 17:34 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok5-Dec-05 21:11
ThatsAlok5-Dec-05 21:11 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Blake Miller6-Dec-05 8:39
Blake Miller6-Dec-05 8:39 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok6-Dec-05 17:08
ThatsAlok6-Dec-05 17:08 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok6-Dec-05 18:51
ThatsAlok6-Dec-05 18:51 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Eytukan2-Dec-05 2:09
Eytukan2-Dec-05 2:09 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok6-Dec-05 18:55
ThatsAlok6-Dec-05 18:55 
AnswerRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Sheng Jiang 蒋晟3-Dec-05 8:55
Sheng Jiang 蒋晟3-Dec-05 8:55 
AnswerRe: From TaskManager - Do not want anyone end task an App./Pross Pin
PanB7-Dec-05 17:54
PanB7-Dec-05 17:54 
QuestionAccess 2000 Ole Integration Pin
pabloqnk1-Dec-05 21:13
pabloqnk1-Dec-05 21:13 
AnswerRe: Access 2000 Ole Integration Pin
Branislav2-Dec-05 23:54
Branislav2-Dec-05 23:54 
Questionunicode problem Pin
QuickDeveloper1-Dec-05 20:54
QuickDeveloper1-Dec-05 20:54 
AnswerRe: unicode problem Pin
sunit51-Dec-05 21:32
sunit51-Dec-05 21:32 
AnswerRe: unicode problem Pin
Taka Muraoka1-Dec-05 22:04
Taka Muraoka1-Dec-05 22:04 
AnswerRe: unicode problem Pin
ThatsAlok6-Dec-05 19:03
ThatsAlok6-Dec-05 19:03 
Questionlist class from STL Pin
SanjaySMK1-Dec-05 20:38
SanjaySMK1-Dec-05 20:38 
AnswerRe: list class from STL Pin
Cedric Moonen1-Dec-05 20:53
Cedric Moonen1-Dec-05 20:53 

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.