Menu Close

when I create a bitmap from the OnFrameBitmap event, an error occurs after a few seconds

How Can We Help?

< Back
You are here:
Print

when I create a bitmap from the OnFrameBitmap event, an error occurs after a few seconds

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 immediately free all the previous bitmaps allocated.

Table of Contents