Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [solved] Flowgraph GDI Object Leak 17.2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Flowgraph GDI Object Leak 17.2

 Post Reply Post Reply
Author
Message
 Rating: Topic Rating: 1 Votes, Average 5.00  Topic Search Topic Search  Topic Options Topic Options
doug.heimer View Drop Down
Newbie
Newbie


Joined: 31 August 2016
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote doug.heimer Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Flowgraph GDI Object Leak 17.2
    Posted: 31 August 2016 at 1:24pm

CXTPFlowGraphPage::SetVisibleNodesWindowsRegions()


 

GDB Object Leak

 

       SetVisibleNodesWindowsRegions uses an optimization to perform rect region culling for child windows if any nodes the graph contain child windows exist.  In doing this, it calls CreateRectRgn for every node, regardless of whether that node has a child window.  However, only nodes with child windows have these regions released.  The rest leak.


Thanks,
Doug Heimer


Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2017 at 3:28pm
Hello Doug Heimer,

Thank you for bringing this to our attention.
I'm glad to inform you that the leak have been fixed and the fix will be available in next beta or final release.

void CXTPFlowGraphPage::SetVisibleNodesWindowsRegions()
{
    ......

    if (bAtLeastOneWindowNode) // for optimization purposes
    {
        ......

        for (i=0; i<nodesWindowVisibleRegions.GetSize(); i++)
        {
            if (allNodes[ i]->GetWindowHandle())
            {
                .....

                SetWindowRgn(allNodes[ i]->GetWindowHandle(), nodesWindowVisibleRegions[ i], TRUE);
                
                //DeleteObject(nodesWindowVisibleRegions[ i]); // free-up resources
            }

            DeleteObject(nodesWindowVisibleRegions[ i]); // free-up resources
        }
    }
}

Regards,
 Oleksandr Lebed
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.141 seconds.