Menu Close

when I create a bitmap from the OnFrameBitmap event, the app crashes after a few seconds

You are here:
  • FAQ home
  • c# & VB.NET
  • when I create a bitmap from the OnFrameBitmap event, the app crashes after a few seconds
< Back

At 30 fps the bitmaps are created too quickly, the garbage collector does have the time to free them fast enough.
Invoke GC.Collect(); in this event to free all the previous bitmaps.

Last Updated On March 19, 2019