Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Leaks with Panes ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Leaks with Panes ???

 Post Reply Post Reply
Author
Message
assassin316 View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote assassin316 Quote  Post ReplyReply Direct Link To This Post Topic: Leaks with Panes ???
    Posted: 12 January 2005 at 8:28am

I'm testing out the docking with the docking panes in VB.NET, and i'm doing very simple behavior. I simply create panes over and over (about 30), then I simply click on the 'X' of each pane to close all the panes. And of course I have the following code to destroy the pane:

Private Sub DockManager_Action(ByVal sender As Object, ByVal e As AxXtremeDockingPane._DDockingPaneEvents_ActionEvent) Handles DockManager.Action

   If sActions(e.action) = "PaneActionClosed" Then
     DockManager.DestroyPane(e.pane)
   End If

End Sub

 

Before continuing, sActions in the above code is simple and array of strings in case anyone is wondering. Now here's the problem, the memory NEVER goes down, keeps on rising on this very simple test. Do these controls leak ??? Am i doing something wrong ???



Edited by assassin316
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2005 at 10:37am

Your code is right.

it is .NET.

Nobody know when .NET core free memory. Don't worry about it.

try to manually free garbage collection:

GC.Collect()

GC.WaitForPendingFinalizers()

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.140 seconds.