Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:19
Tomasz Sowinski9-Sep-02 2:19 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:22
Jawache9-Sep-02 2:22 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:26
Tomasz Sowinski9-Sep-02 2:26 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:39
Jawache9-Sep-02 2:39 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:43
Tomasz Sowinski9-Sep-02 2:43 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:53
Jawache9-Sep-02 2:53 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:55
Tomasz Sowinski9-Sep-02 2:55 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 3:36
Jawache9-Sep-02 3:36 
The first CWinApp Derived is

CWinApp _afxOleWinApp;

the second is the normal

CExplorerApp theApp;

I think its safe at this point to mention that i'm using some activeX controls in my applications. I suppose thats what the _afxOleWinApp is all about.

The constructor is called twice becuase two objects are created, but the destructor is called once.

I think i've got it.

The descructor is called for _afxOleWinApp and since no documents have been added to this one the m_pDocManager is NULL by the time the destructor is called.

This must cause some error and the app to terminate incorrectly.

What is _afxOleWinApp is this correct behavior, to have 2 WinApps?

Asim Hussain
e: asim@jawache.net
w: www.jawache.net
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 3:49
Tomasz Sowinski9-Sep-02 3:49 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 4:08
Jawache9-Sep-02 4:08 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 4:12
Tomasz Sowinski9-Sep-02 4:12 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 4:33
Jawache9-Sep-02 4:33 
GeneralRe: [SOLVED] Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache10-Sep-02 12:48
Jawache10-Sep-02 12:48 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:26
Jawache9-Sep-02 2:26 
GeneralSaving DC contents in an image file Pin
Majid Shahabfar9-Sep-02 1:01
Majid Shahabfar9-Sep-02 1:01 
GeneralRe: Saving DC contents in an image file Pin
Jawache9-Sep-02 1:18
Jawache9-Sep-02 1:18 
General3D plot Pin
Majid Shahabfar9-Sep-02 0:51
Majid Shahabfar9-Sep-02 0:51 
GeneralRe: 3D plot Pin
Jawache9-Sep-02 1:24
Jawache9-Sep-02 1:24 
GeneralROOT Pin
Jonathan de Halleux9-Sep-02 1:44
Jonathan de Halleux9-Sep-02 1:44 
QuestionHOWTO Place controls in taskbar?? Pin
Don Miguel9-Sep-02 0:36
Don Miguel9-Sep-02 0:36 
AnswerRe: HOWTO Place controls in taskbar?? Pin
Andreas Saurwein9-Sep-02 2:06
Andreas Saurwein9-Sep-02 2:06 
AnswerRe: HOWTO Place controls in taskbar?? Pin
Stephane Rodriguez.9-Sep-02 2:09
Stephane Rodriguez.9-Sep-02 2:09 
GeneralRe: HOWTO Place controls in taskbar?? Pin
Don Miguel9-Sep-02 2:44
Don Miguel9-Sep-02 2:44 
GeneralStretchDIBits Error Pin
code_cold9-Sep-02 0:31
code_cold9-Sep-02 0:31 
Generalri-socket Pin
yuke9-Sep-02 0:23
yuke9-Sep-02 0:23 

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.