You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think problem in this: GC.KeepAlive(this); - autogenerate because
in C++ code -> CreateSession
return std::make_shared ;
this bad idea for c# (and other code for dispose) https://habr.com/ru/articles/509004/
I looked in .Net Momory Profiler leak this:
The text was updated successfully, but these errors were encountered:
When i use https://github.com/chronoxor/CSharpServer
Test With
Repeat: 10
Thread/Connect: 100
Message send and echo: 10
On screen - ChatSession never Disposed.
(But I try manual call Dispose, and GC.Collect)
Then if disassembly in VS2022:
session.Dispose:
I think problem in this: GC.KeepAlive(this); - autogenerate because
in C++ code -> CreateSession
return std::make_shared ;
this bad idea for c# (and other code for dispose)
https://habr.com/ru/articles/509004/
I looked in .Net Momory Profiler leak this:
The text was updated successfully, but these errors were encountered: