Hello there I have a problem. I have a setup to capture Screenshots of my WebBrowser control:
public static class Utilities
{
public const int SRCCOPY =
The garbage collector will clean up after you, but it can't get the job done properly for the Image class. Which is a very small managed wrapper class around a big pile of unmanaged memory that stores the pixel data of an image. You will run out of memory before you've created enough Image objects to trigger a GC.
Explicitly disposing the old images is required.