Bugs item #3468903, was opened at 2012-01-03 03:09
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3468903&group_id=51305
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: Yes
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: "wxmemdbg" issue
Initial Comment:
"wxmemdbg" couldn't indicate memory leaks at which line when it is console application:
Hello,
I know this is not support forum for wxWidgets but I am using to catch
memory leaks with "wxmemdbg.h" header file at specified this address
"http://wxcode.svn.sourceforge.net/viewvc/wxcode/trunk/wxCode/components/wxpdfdoc/src/wxmemdbg.h?revision=1026&view=markup"
At this XML example:
http://docs.wxwidgets.org/stable/wx_wxxmldocument.html
wxXmlDocument doc;
if (!doc.Load(wxT("myfile.xml")))
return false;
// start processing the XML file
if (doc.GetRoot()->GetName() != wxT("myroot-node"))
return false;
wxXmlNode *child = doc.GetRoot()->GetChildren();
while (child) {
if (child->GetName() == wxT("tag1")) {
// process text enclosed by <tag1></tag1>
wxString content = child->GetNodeContent();
...
// process properties of <tag1>
wxString propvalue1 =
child->GetPropVal(wxT("prop1"),
wxT("default-value"));
wxString propvalue2 =
child->GetPropVal(wxT("prop2"),
wxT("default-value"));
...
} else if (child->GetName() == wxT("tag2")) {
// process tag2 ...
}
child = child->GetNext();
}
There was a memory leak but "wxmemdbg.h" header file doesn't indicate the exact line where
memory leak occurs.
I've written the project as a console application but I realize that "wxmemdbg.h" header
file catchs the memory leaks but it doesn't indicate which line the leak occurs. Is it not
feature of "wxmemdbg.h" header file to not indicate where the memory leaks occurs at which line
when it is console application?
Could you please assist for this issue?
Thanks in Advance.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3468903&group_id=51305
|