Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I get ride of the 'X' that closes an application. Pin
mcgahanfl14-Feb-05 4:45
mcgahanfl14-Feb-05 4:45 
AnswerRe: How can I get ride of the 'X' that closes an application. Pin
John M. Drescher14-Feb-05 5:33
John M. Drescher14-Feb-05 5:33 
AnswerRe: How can I get ride of the 'X' that closes an application. Pin
Kippesoep14-Feb-05 6:36
Kippesoep14-Feb-05 6:36 
GeneralResource DLL Pin
Franz Klein14-Feb-05 4:13
Franz Klein14-Feb-05 4:13 
GeneralRe: Resource DLL Pin
rocky_pulley14-Feb-05 4:21
rocky_pulley14-Feb-05 4:21 
GeneralRe: Resource DLL Pin
Franz Klein14-Feb-05 4:31
Franz Klein14-Feb-05 4:31 
GeneralRe: Resource DLL Pin
Shog914-Feb-05 7:57
sitebuilderShog914-Feb-05 7:57 
GeneralApp doesn't shut down propperly Pin
IGeorgeI14-Feb-05 2:45
IGeorgeI14-Feb-05 2:45 
Hey guys

My app has a mem leak which results from ExitInstance() not being called when I terminate the program.

I have traced into MFC and descovered that in the THRDCORE.cpp file, the following code is causing ExitInstance() to NOT be called.


==============================================================
// phase2: pump messages while available
do
{
// pump message, but quit on WM_QUIT
if (!PumpMessage())
return ExitInstance();

==============================================================

Does anybody know what some of causes of pumpMessage() to return true??


Thanks George



George W

Software Developer
www.zsystems.ca
GeneralRe: App doesn't shut down propperly Pin
Blake Miller14-Feb-05 5:29
Blake Miller14-Feb-05 5:29 
GeneralRe: App doesn't shut down propperly Pin
IGeorgeI14-Feb-05 6:14
IGeorgeI14-Feb-05 6:14 
GeneralSetup project Pin
viliam14-Feb-05 2:34
viliam14-Feb-05 2:34 
GeneralHitting F5 ALWAYS asks if I want to build Pin
dabs14-Feb-05 2:18
dabs14-Feb-05 2:18 
GeneralRe: Hitting F5 ALWAYS asks if I want to build Pin
Michael Dunn14-Feb-05 3:07
sitebuilderMichael Dunn14-Feb-05 3:07 
GeneralRe: Hitting F5 ALWAYS asks if I want to build Pin
dabs14-Feb-05 3:33
dabs14-Feb-05 3:33 
GeneralRe: Hitting F5 ALWAYS asks if I want to build Pin
Ted Ferenc14-Feb-05 4:59
Ted Ferenc14-Feb-05 4:59 
GeneralRe: Hitting F5 ALWAYS asks if I want to build Pin
K. Shaffer14-Feb-05 6:34
K. Shaffer14-Feb-05 6:34 
GeneralServer Service NT/win2k with client Pin
LPKPOKOK14-Feb-05 1:19
sussLPKPOKOK14-Feb-05 1:19 
GeneralCreating Virtual Directories IIS Pin
bmk95914-Feb-05 0:43
bmk95914-Feb-05 0:43 
GeneralRe: Creating Virtual Directories IIS Pin
Blake Miller14-Feb-05 5:33
Blake Miller14-Feb-05 5:33 
GeneralRe: Creating Virtual Directories IIS Pin
bmk95916-Feb-05 5:33
bmk95916-Feb-05 5:33 
Generaldx9 prob Pin
Zizilamoroso14-Feb-05 0:37
Zizilamoroso14-Feb-05 0:37 
GeneralRe: dx9 prob Pin
rocky_pulley14-Feb-05 1:44
rocky_pulley14-Feb-05 1:44 
GeneralRe: dx9 prob Pin
Zizilamoroso14-Feb-05 2:56
Zizilamoroso14-Feb-05 2:56 
GeneralRe: dx9 prob Pin
Bob Ciora14-Feb-05 9:27
Bob Ciora14-Feb-05 9:27 
GeneralRe: dx9 prob Pin
Zizilamoroso14-Feb-05 11:34
Zizilamoroso14-Feb-05 11:34 

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.