Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: StackOverflowException

$
0
0
I cannot get any information from your dump. Is it possible that there is a memory issue? You are doing the following:
Bitmap bm = new Bitmap(image.ToBitmap());
pictureBox.Image = bm;
This creates a copy of the bitmap and you are not disposing the other image. Can you change it to this:
Bitmap bm = pictureBox.Image;
pictureBox.Image = image.ToBitmap();
if (bm != null)
  bm.Dispose();

Viewing all articles
Browse latest Browse all 3693

Trending Articles