Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Clearing edit box causes memory leak.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Clearing edit box causes memory leak.

 Post Reply Post Reply
Author
Message
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (1) Thanks(1)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: Clearing edit box causes memory leak.
    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.


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.