Clearing edit box causes memory leak. |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(1)
Posted: 19 June 2016 at 6:32pm |
I don't think this has been fixed yet.
Let's say I want to clear the edit box. Example: // CXTPSyntaxEditCtrl m_CtrlSynEdit; m_CtrlSynEdit.SetText(_T("") ); Close the program. You will see something like: c:\program files (x86)\codejock software\mfc\xtreme toolkitpro v16.2.6\source\syntaxedit\xtpsyntaxeditlexparser.cpp(1495) : {952757} client block at 0x0A9124B8, subtype c0, 100 bytes long. a CCmdTarget object at $0A9124B8, 100 bytes long c:\program files (x86)\codejock software\mfc\xtreme toolkitpro v16.2.6\source\syntaxedit\xtpsyntaxeditlexparser.cpp(1495) : {950996} client block at 0x0A9121E8, subtype c0, 100 bytes long. a CCmdTarget object at $0A9121E8, 100 bytes long c:\program files (x86)\codejock software\mfc\xtreme toolkitpro v16.2.6\source\syntaxedit\xtpsyntaxeditlexparser.cpp(1495) : {950948} client block at 0x0A911E70, subtype c0, 100 bytes long. a CCmdTarget object at $0A911E70, 100 bytes long {950038} normal block at 0x0A7AD700, 28 bytes long. Data: < 1 > 18 31 8F 02 04 00 00 00 05 00 00 00 01 00 00 00 f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\array_s.cpp(112) : {950037} normal block at 0x04C5B6E8, 4 bytes long. Data: < z > 10 D7 7A 0A f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\array_s.cpp(112) : {920572} normal block at 0x0A554D80, 4 bytes long. Data: < > F8 00 F5 07 c:\program files (x86)\codejock software\mfc\xtreme toolkitpro v16.2.6\source\syntaxedit\xtpsyntaxeditlexparser.cpp(2833) : {920571} client block at 0x0A679760, subtype c0, 1296 bytes long. a CCmdTarget object at $0A679760, 1296 bytes long {152182} normal block at 0x07F51A30, 30 bytes long. Data: < 1 > 18 31 8F 02 05 00 00 00 06 00 00 00 01 00 00 00 {152165} normal block at 0x07F500E8, 36 bytes long. Data: < 1 > 18 31 8F 02 07 00 00 00 09 00 00 00 01 00 00 00 Object dump complete. *Kludge work around: m_CtrlSynEdit.SetText(_T("\t") ); m_CtrlSynEdit.SetCurCaretPos(1,1); As long as there is something and not blank text it seems happy. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |