Closed Grossley closed 1 year ago
What was the operation, what game?
Deltarune chapter 2, Data.GMS2_2_2_302 = false;
This appears to only occur on "AnyCPU" when running in Visual Studio
And apparently only occurs for some people, as I've been unable to reproduce it even after two hours of trying.
Use on real hardware not in VM
I can confirm that this is an issue, as I always get this error when saving. And on top of that, I can't even edit or view the decompiled Deltarune Chapter 2 code.
(I'm on Windows 10, running right off the hardware.)
It's still relevant.
That's because assemblies for scripts can't be unloaded from memory (at least there's no way that I would aware of), see this issue - https://github.com/dotnet/roslyn/issues/41722
The only way to somehow reduce memory consumption is to call GC.Collect()
after every command.
Yeah, GC.Collect()
seems to work.
I ran UndertaleModTool 7 times, performing the same operation once in the command box, and then attempted to save, and it only successfully saved once.