Re: Cycling between images increases memory usage

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 05/09/04


Date: 09 May 2004 13:05:26 +0200


* "=?Utf-8?B?U2N5dHJheA==?=" <anonymous@discussions.microsoft.com> scripsit:
> I have made an application that uses the PictureBox control and I have an array of images that I need the PictureBox to cycle through.
>
> I use a timer and in the Tick event I set the Image property of the
> PictureBox control to the next image in the array.

Post your code.

-- 
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Relevant Pages

  • Newebie: How do I change a Picture Box on a Visual C++ / CLR managed form into a picture box array?
    ... I have found many exmaples on how to make a String array however I am ... I have started a new form and a single picturebox control. ... using namespace System; ... #pragma region Windows Form Designer generated code ...
    (microsoft.public.dotnet.languages.vc)
  • Cycling between images increases memory usage
    ... I have made an application that uses the PictureBox control and I have an array of images that I need the PictureBox to cycle through. ... When I run the application and watch the memory usage in Task Manager, I see that the memory usage increases slowly. ... In order to verify that the problem has to do with images and the PictureBox control, I created a basic version of the program that only has the PictureBox control in it as well as the array of pictures and the timer. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)