Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
KarstenK3-Apr-03 21:19
mveKarstenK3-Apr-03 21:19 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
Mike Upton3-Apr-03 22:16
Mike Upton3-Apr-03 22:16 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
Harrier4-Apr-03 4:59
Harrier4-Apr-03 4:59 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
John R. Shaw4-Apr-03 8:04
John R. Shaw4-Apr-03 8:04 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
zhangyifei4-Apr-03 20:44
zhangyifei4-Apr-03 20:44 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
John R. Shaw8-Apr-03 10:42
John R. Shaw8-Apr-03 10:42 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
zhangyifei11-Apr-03 4:33
zhangyifei11-Apr-03 4:33 
GeneralRe: Why,Why,Why no one can resolvoe this Question?Doc/view/frame!I Have post this artical 5 time! Pin
John R. Shaw14-Apr-03 9:19
John R. Shaw14-Apr-03 9:19 
Open appcore.cpp and look at CWinApp::~CWinApp(), this is where CDocManager::pStaticList and CDocManager::pStaticDocManager are deleted. Since CWinApp is not the base class for your project then these two pointers will not be deleted. Therefore, you must delete them your self. I beleive that the plex.cpp memory leak should go away when you fix the other two, because it is used to allocate storage for nodes and CDocManager uses a list of nodes used to store the docment template pointers.

Note also, that the list of memory leaks is the inverse of the order of allocations.
1) CPtrList is allocated.
2) CDocManager is allocated.
3) CPlex alloction occurs (CDocManager::pStaticList->AddTail(this)).

:-OThanks for the dump, it made the answer ovious where the problem was.


Blast I should have seen this earlier!!!
GeneralWhy no one can resolvoe this Question?Doc/view/frame! Pin
zhangyifei3-Apr-03 20:57
zhangyifei3-Apr-03 20:57 
GeneralConvert CString to char[32] Pin
JensB3-Apr-03 20:49
JensB3-Apr-03 20:49 
GeneralRe: Convert CString to char[32] Pin
Cedric Moonen3-Apr-03 21:21
Cedric Moonen3-Apr-03 21:21 
GeneralRe: Convert CString to char[32] Pin
Rein Hillmann3-Apr-03 22:36
Rein Hillmann3-Apr-03 22:36 
GeneralRe: Convert CString to char[32] Pin
KarstenK3-Apr-03 21:22
mveKarstenK3-Apr-03 21:22 
GeneralRe: Convert CString to char[32] Pin
JensB3-Apr-03 22:10
JensB3-Apr-03 22:10 
GeneralRe: Convert CString to char[32] Pin
jhwurmbach4-Apr-03 1:27
jhwurmbach4-Apr-03 1:27 
Generalurgent help reqd for fonts !!! Pin
drmzunlimited3-Apr-03 20:28
drmzunlimited3-Apr-03 20:28 
GeneralCTreeCtrl - leaf - Pin
JensB3-Apr-03 19:46
JensB3-Apr-03 19:46 
GeneralRunning Visual C++ executable files in OS/2 Pin
JekYu3-Apr-03 19:39
JekYu3-Apr-03 19:39 
QuestionHow to persist data in a DLL Pin
Ph@ntom3-Apr-03 19:31
Ph@ntom3-Apr-03 19:31 
GeneralWindow title and Complete applicaiton Path Pin
Saqib Razzaq3-Apr-03 18:45
Saqib Razzaq3-Apr-03 18:45 
GeneralRe: Window title and Complete applicaiton Path Pin
KarstenK3-Apr-03 21:28
mveKarstenK3-Apr-03 21:28 
GeneralRe: Window title and Complete applicaiton Path Pin
Cedric Moonen3-Apr-03 21:41
Cedric Moonen3-Apr-03 21:41 
GeneralWindows disabling dialogs after WM_QUIT Pin
Kibble3-Apr-03 16:40
Kibble3-Apr-03 16:40 
Generalrealted to new operator. Pin
anju3-Apr-03 16:39
anju3-Apr-03 16:39 
GeneralRe: realted to new operator. Pin
Dave Bryant3-Apr-03 16:52
Dave Bryant3-Apr-03 16:52 

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.