Jump to content
Software FX Community

jprajogo

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by jprajogo

  1. Thank you Juan, is there a link we can access to view the release notes for that build? Also, the latest builds we can see appear to be version 7.0.4962 on the Software FX website; but having said that, it looks like our subscription has expired so could that be the reason?
  2. Thank you for the update Juan, that is very good news indeed! Just to confirm, when you say the latest build, are you referring to the latest Chart FX 7 build? In any case I will download the latest build of Chart FX 7 and give it a go. Thanks again.
  3. Yes, that is correct. In this 'rendering loop' we recycle our control for performance reasons before rendering the next item on the list. So we need to reset the chart to the original state before continuing. In our 'loop' we call a Render method - and I have wrapped this call with a call to GetGuiResources through pinvoke. like so: Debug.WriteLine(string.Format("User Handle count before Render: {0}", GetUserObjectCount().ToString())); renderer.Render(this, control, this.resultStream); Debug.WriteLine(string.Format("User Handle count after Render: {0}", GetUserObjectCount().ToString())); where GetUserObjectCount is defined as such: private int GetUserObjectCount() { return Convert.ToInt32(GetGuiResources(Process.GetCurrentProcess().Handle, GR_USEROBJECTS)); } private const uint GR_USEROBJECTS = 1; [DllImport("User32.dll")] static extern uint GetGuiResources(IntPtr hProcess, uint uiFlags); Here I can clearly see that the delta between before and after is 1 (increasing). Stepping through the 'Render' code reveal the increase in count specifically when calling: m_chart.Reset(); where m_chart is a WinForms.Chart object, and I can verify this further by wrapping this line with the same call to GetGuiResources. In fact, if I specifically remove the call to reset the chart above, then the leak disappears. However doing so affects our performance so we need to have the reset there.
  4. We have a form which hosts the Winforms.Chart control, and as part of its initialization process, we call Chart.Reset(). This call appears to leak a user handle object. This problem has become much more of an issue recently as we have a client with a process which renders n instances of the chart as part of a collection in a loop. As such the leak is much more noticeable, and the more instances to render, you would eventually get to a point where these resources have been exhausted and the only way to get past the issue is to restart the application. Has anyone seen this issue and/or know of it or have any suggestions? Any help or suggestions would be very much appreciated and thank you in advance. Note: we are using ChartFx.WinForms version 7.0.3306.26568.
×
×
  • Create New...