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
240
ultrapicturebox control
posted

Hi,

I have a windows (VS2005) C# form that contains ultrapicturebox controls on it. I create them on the fly as I need them, depending on the number of Images I need to display to the user.

Problem:  After opening and closing the form a number of times (maybe 30) (without closing the program), I am getting a OUT OF MEMORY error, and I know it is because the images are not getting released properly. Even though I am 'Disposing' and 'Garbage Collecting', these images are still not being released from memory.

Does anyone have a solution to this problem?

I am using v5.3 of Infragistics controls.

Does a newer version resolve this issue?

Thanks,

Dan

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Dan,

    dancarlile said:
    I know it is because the images are not getting released properly

    How do you know this?

    Are you clearing the UltraPictureBox control's reference to the image? Are you displosing of the controls?

    It's really impossible to guess what's causing a memory leak without seeing exactly what you code is doing and maybe running it through a memory profiler. Can you duplicate this behavior in a small sample project and Submit an incident to Infragistics Developer Support?

Reply Children