What is the correct way to handle “out of memory”?

后端 未结 7 918
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 13:57

Recently, I work on a video player program on Windows for a CCTV program. As the program has to decode and play many videos streams at the same time, I think it might meet

7条回答
  •  有刺的猬
    2020-12-30 14:50

    Always check, and pre-allocate a buffer that can be freed in this case so you can warn the user to save his data and shut down the application.

提交回复
热议问题