Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
686
Infragistics controls not releasing gdi resources?
posted

Hi

After researching a problem i had where contextmenu's do not draw properly - i discovered that it happened when i had screens open which contained either the UltraDayView or UltraMonthViewSingle.

It seemed to me that the infragistics schedule controls was using way too much gdi resources so that not even other applications context menu's were rendering properly.

Further digging got me to this article;
http://subjectively.blogspot.com/2009/03/importance-of-recycling-memory.html

Is what this person saying true?

Why on earth would you sacrifice application stability (the most important thing of all) for such a trivial convenience as updating the UI when the windows theme changed.

Can somebody please tell me whether this issue mentioned in the above link has been addressed in the latest version?

Parents
  • 69832
    Suggested Answer
    Offline posted

    What Mr. Naar neglected to mention in his blog is that if you dispose of the controls properly, as is good practice, the references are released, nothing stays rooted, and there is no leak. If I remember correctly he was using finalizers, which is (at least in the opinion of some of the folks at Microsoft) not recommended. You can read more about that here if you like.

    Having said that, it is possible that a Pen or a Brush is not being disposed of properly, in which case you should report it as a bug.

Reply Children