Print Page | Close Window

Clearing edit box causes memory leak.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=23051
Printed Date: 26 April 2024 at 2:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Clearing edit box causes memory leak.
Posted By: Algae
Subject: Clearing edit box causes memory leak.
Date 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.





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net