Out of memory exception in c# when drawing trains in picturebox

前端 未结 1 1084
借酒劲吻你
借酒劲吻你 2021-01-26 07:46

I am trying to create an application that shows the online trains in picturebox

So to implement this i create a worker thread

相关标签:
1条回答
  • 2021-01-26 08:32

    Dispose bitmaps which you no longer need. They consume huge amounts of unmanaged memory. The GC is not aware of unmanaged memory and cannot trigger a collection based on unreachable unmanaged memory.

    0 讨论(0)
提交回复
热议问题