Click here to Skip to main content
15,909,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGmail in MFC application Pin
Software200715-Jul-10 2:25
Software200715-Jul-10 2:25 
AnswerRe: Gmail in MFC application Pin
Niklas L15-Jul-10 2:36
Niklas L15-Jul-10 2:36 
GeneralRe: Gmail in MFC application Pin
Software200715-Jul-10 2:41
Software200715-Jul-10 2:41 
AnswerRe: Gmail in MFC application Pin
Maximilien15-Jul-10 2:51
Maximilien15-Jul-10 2:51 
AnswerRe: Gmail in MFC application Pin
Nemanja Trifunovic15-Jul-10 3:12
Nemanja Trifunovic15-Jul-10 3:12 
GeneralRe: Gmail in MFC application Pin
Software200715-Jul-10 3:16
Software200715-Jul-10 3:16 
GeneralRe: Gmail in MFC application Pin
Nemanja Trifunovic15-Jul-10 4:11
Nemanja Trifunovic15-Jul-10 4:11 
QuestionMSXML2 - XML parser Memory Leak Pin
chevu15-Jul-10 2:03
chevu15-Jul-10 2:03 
Hi,

We are using Microsoft provided DOM parser - MSXML2 version 4(or 40)
When we are saving XML file, we are generating whole new file including all nodes and elements. Size of XML file is 3.5 MB. So it is taking 350 MB memory (both virtual as well as physical) Once save is done we are releasing all the XML objects. But there is no change happening in memory. So every consecutive save keeps on increasing memory by 350MB (approx) After 3-4 save we have to restart application again.

We have seen that if we minimize the application physical memory is coming back to original size (mean additional 350MB is getting reduced) but virtual memory is not changing. I think may be OS have reserved that place for application as memory cleaning is not done properly. But we have make sure that we have release all the memory we use.
Some where on some forum we seen a work around like this,
VARIANT_BOOL bstatus;
m_pXMLDomDoc->loadXML(CComBSTR(""), &bstatus );
Release(m_pXMLDomDoc);


That guy suggested that after you release saved document try to load a blank file. It will remove uncleaned area. But there is not much improvement. Please let me know if someone can help me.
AnswerRe: MSXML2 - XML parser Memory Leak Pin
Naveen15-Jul-10 2:19
Naveen15-Jul-10 2:19 
GeneralRe: MSXML2 - XML parser Memory Leak Pin
chevu15-Jul-10 18:31
chevu15-Jul-10 18:31 
QuestionNested DLL Pin
viduran15-Jul-10 1:38
viduran15-Jul-10 1:38 
AnswerRe: Nested DLL Pin
Richard MacCutchan15-Jul-10 2:05
mveRichard MacCutchan15-Jul-10 2:05 
GeneralRe: Nested DLL Pin
viduran15-Jul-10 2:30
viduran15-Jul-10 2:30 
GeneralRe: Nested DLL Pin
Richard MacCutchan15-Jul-10 2:52
mveRichard MacCutchan15-Jul-10 2:52 
GeneralRe: Nested DLL [modified] Pin
viduran15-Jul-10 3:06
viduran15-Jul-10 3:06 
GeneralRe: Nested DLL Pin
Richard MacCutchan15-Jul-10 4:18
mveRichard MacCutchan15-Jul-10 4:18 
GeneralRe: Nested DLL Pin
viduran15-Jul-10 19:39
viduran15-Jul-10 19:39 
GeneralRe: Nested DLL Pin
Richard MacCutchan15-Jul-10 21:26
mveRichard MacCutchan15-Jul-10 21:26 
GeneralRe: Nested DLL Pin
viduran15-Jul-10 21:37
viduran15-Jul-10 21:37 
GeneralRe: Nested DLL Pin
Richard MacCutchan15-Jul-10 21:49
mveRichard MacCutchan15-Jul-10 21:49 
AnswerRe: Nested DLL Pin
KarstenK15-Jul-10 2:26
mveKarstenK15-Jul-10 2:26 
GeneralRe: Nested DLL Pin
viduran15-Jul-10 2:55
viduran15-Jul-10 2:55 
QuestionEdit Control Pin
AbhiHcl15-Jul-10 0:33
AbhiHcl15-Jul-10 0:33 
AnswerRe: Edit Control Pin
Naveen15-Jul-10 1:37
Naveen15-Jul-10 1:37 
GeneralRe: Edit Control Pin
AbhiHcl15-Jul-10 2:00
AbhiHcl15-Jul-10 2:00 

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.