2004-04-15, 08:18 AM
In the WeatherPlugin source, by sub, haven't checked codemonkey's, there's a memory leak that in my ShutDown Plugin became a HUGE memory leak.
The problem is that in the render method we have:
foregroundImage = new Bitmap(720, 480);
Aperantley you must dispose of Image objects (in the right order too) or they will just add to the memmory...
As the menu is loopable (when presing down on last entry, it goes to first) in my plugin, when holding down the down key, it grew as ####....
I resolved this by adding:
  foregroundImage.Dispose();
  g.Dispose();
This should be done just before returning the compositeScreenImage.
The problem is that in the render method we have:
foregroundImage = new Bitmap(720, 480);
Aperantley you must dispose of Image objects (in the right order too) or they will just add to the memmory...
As the menu is loopable (when presing down on last entry, it goes to first) in my plugin, when holding down the down key, it grew as ####....
I resolved this by adding:
  foregroundImage.Dispose();
  g.Dispose();
This should be done just before returning the compositeScreenImage.
/Q