Hey Wulf, i reload over 9000 times my plugin and i get "out of memory" exception.
Why?
Can you fix this?
[Memory Leak] Plugin reload = Out of Memory
Discussion in 'Rust Development' started by bazuka5801, Nov 15, 2017.
-
Surely it’d be to do with your plugin not Oxide?
-
Wulf Community Admin
Are you storing anything as static? If so, that persists.
-
-
Wulf Community Admin
-
-
Can you post bare minimum code to reproduce the situation?
-
My CSharpPluginLoader (MyPlugin)
Original Oxide CSharpPluginLoader (NoEscape)
P.s. See column 'Память' (RAM)
Last edited by a moderator: Nov 15, 2017 -
Wulf Community Admin
I did a primitive test with a plugin and no static references and did notice 0-5mb increase each reload, but pretty trivial. Oxide is open source though, so if you ever feel like contributing it's there. Not sure what the purpose of writing your own plugin loader would serve. -
small hint - you should'nt use Assembly.Load
more tips with that memory leak will not be