From: "Kevin Van Leer" on 17 Feb 2007 16:32 It appears that memory leaks are being created while parsing through my XML document. The debugging information follows. ---------- Block 110490 at 0x03F2D598: 32 bytes ---------- Call Stack: c:\wxwidgets-2.8.0\src\common\string.cpp (221): wxStringBase::AllocBuffer c:\wxwidgets-2.8.0\src\common\string.cpp (171): wxStringBase::InitWith c:\wxwidgets-2.8.0\include\wx\string.h (369): wxStringBase::wxStringBase c:\wxwidgets-2.8.0\include\wx\string.h (700): wxString::wxString c:\wxwidgets-2.8.0\src\xml\xml.cpp (439): CharToString c:\wxwidgets-2.8.0\src\xml\xml.cpp (500): TextHnd c:\wxwidgets-2.8.0\src\expat\lib\xmlparse.c (2323): doContent c:\wxwidgets-2.8.0\src\expat\lib\xmlparse.c (1788): contentProcessor c:\wxwidgets-2.8.0\src\expat\lib\xmlparse.c (1455): XML_ParseBuffer c:\wxwidgets-2.8.0\src\expat\lib\xmlparse.c (1442): XML_Parse c:\wxwidgets-2.8.0\src\xml\xml.cpp (658): wxXmlDocument::Load c:\wxwidgets-2.8.0\src\xml\xml.cpp (401): wxXmlDocument::Load c:\documents and settings\kvanleer\my documents\visual studio projects\mediacenter\src\scheduleretreiver.cpp (212): ScheduleRetreiver::ReadScheduleFile c:\documents and settings\kvanleer\my documents\visual studio projects\mediacenter\src\scheduleretreiver.cpp (149): ScheduleRetreiver::GetSchedule c:\documents and settings\kvanleer\my documents\visual studio projects\mediacenter\src\scheduleretreiver.cpp (143): ScheduleRetreiver::ScheduleRetreiver c:\documents and settings\kvanleer\my documents\visual studio projects\mediacenter\src\mediacenterframe.cpp (23): MediaCenterFrame::MediaCenterFrame c:\documents and settings\kvanleer\my documents\visual studio projects\mediacenter\src\mediacenterapp.cpp (25): MediaCenterApp::OnInit c:\wxwidgets-2.8.0\include\wx\app.h (76): wxAppConsole::CallOnInit c:\wxwidgets-2.8.0\src\common\init.cpp (424): wxEntryReal c:\wxwidgets-2.8.0\src\msw\main.cpp (208): wxEntry c:\wxwidgets-2.8.0\src\msw\main.cpp (385): wxEntry c:\documents and settings\kvanleer\my documents\visual studio projects\mediacenter\src\mediacenterapp.cpp (12): WinMain f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c (390): WinMainCRTStartup 0x7C816FD7 (File and line number not available): RegisterWaitForInputIdle Data: 01 00 00 00 08 00 00 00 13 00 00 00 53 48 38 39 ......... ....SH89 33 37 33 31 00 CD CD CD CD CD CD CD CD CD CD CD 3731.... ........ I'll be happy to provide more information if needed. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: Vadim Zeitlin on 4 Mar 2007 16:28 On Sat, 17 Feb 2007 15:32:25 -0600 Kevin Van Leer <kevin.vanleer(a)gmail.com> wrote: KVL> It appears that memory leaks are being created while parsing through KVL> my XML document. The debugging information follows. .... KVL> I'll be happy to provide more information if needed. Can you reproduce this in a sample? VZ -- TT-Solutions: wxWidgets consultancy and technical support http://www.tt-solutions.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: "Kevin Van Leer" on 15 Mar 2007 08:14 I was not able to duplicate the error in a minimal example. I did further digging and discovered that the wxStrings causing the leak, which allocated in the wxXmlDocument class, are being leaked in my own code. I should have paid more attention to it. Thanks for setting me straight. --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
|
Pages: 1 Prev: wxXmlDocument Next: wxGrid::GetSelectedRows()/Cols() bug? |