C# Out of Memory when Creating Bitmap

前端 未结 6 1222
旧时难觅i
旧时难觅i 2020-12-09 19:41

I\'m creating an application (Windows Form) that allows the user to take a screenshot based on the locations they choose (drag to select area). I wanted to add a little \"pr

6条回答
  •  误落风尘
    2020-12-09 20:12

    If you are creating new bitmaps over and over, you might need to call GC.Collect(); which will force C# to garbage collect

提交回复
热议问题