#433·kcp

ikcp_update报这个错,不知道为什么,请教一下高手。

Author: thinbugCreated Nov 14, 2024Updated May 29, 2025

我的项目是c#的,kcp是cmake直接编译成dll来使用的 . 服务端代码可以连接多kcp.在多用户运行一段时间后会出现报错,如下图 image

这个ikcp_update报错一般是什么原因引起的? Fatal error. System. AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Repeat 2 times: at NetLibrary. KCP. ikcp_update (NetLibrary. IKCPCB*, UInt32) at NetLibrary. KcpSocketServer+?+?.?()at Systen. Threading. ExecutionContext. RunInternal (System. Threading. ExecutionContext,