Closed arik123 closed 1 year ago
i confirmed the cause by running a memory snapshot before and after and comparing reference counts. upon loading a new preset there's two unique DataCache
s in memory. this might take a bit to fix since afaik you'd have to go through all references to DataCache
s and maybe put breakpoints or otherwise investigate which references don't get reassigned to the newly constructed DataCache
.
IMHO: DataCache
should be moved from ProductionGraphView
to mainForm
- that will allow to have multiple files (tabs) opened (first step to have it), and in meantime all references/assignment will have to be reviewed...
Steps to reproduce:
Load barelling crafting recipes
Possible cause
There is most likely some reference to the old DataCache left even after it is replaced with the new one, so the GC keeps it alive.