When I use Socket.IO, why I got an error An unhandled exception of type 'System.OutOfMemoryException'

前端 未结 3 1733
小鲜肉
小鲜肉 2020-12-07 04:52

I coded a program to get the screen shot and send to the server. Every time, I got a screenshot and turned into base64 then sent it using Socket.IO. (using SocketIOClient.dl

3条回答
  •  时光取名叫无心
    2020-12-07 05:22

    I would guess you are running your timer too frequently and eating memory to an unsustainable point. Did you try lowering its frequency?

    If lowering the frequency doesn't help, your code or the SocketIOClient.dll library may be leaking memory. I suggest that first you review the usage of that library to verify that you are not leaving resources open.

提交回复
热议问题