[Closed] How to get rid of Garbage Collection Error ?
Guys please help, I always got an GC error when my script run in a bigger scene (more than 500mb) and GC performed. I have many scripts but never experience this.
This script is a bit big, so i have no idea how to simplify it and share it here… it use eventHandler, callbacks, no bitmap operation, heapSize += 200000000 at the first line, a lot of dotNet controls,
so, what have i missed? Thanks.
it’s a memory leaking more likely…
what kind a tool you run? what heavy operations are there?
Its an object lister. There is no even one heavy operation.
but i can say that the heaviest function is reset parameters, and as far as i remember there is no other function heavier than this.
i forgot few things to mention which actually i dont know if it is even related to GC error: i’m sure there is no eventHandler and callbacks left active after the script closed, no BackGroundWorker, there is a tiny bitmap operation using (dotnetclass “system.drawing.icon”).extractAssociatedIcon and Base64 encoding by LoneRobot.net ,
I build this script for almost a year in my free time. I never test it in bigger scene / or use it in real production scene until a month ago.
And i’m thinking of… Is this a known issue of dotnet winform GUI usage in maxscript? if yes then i’ll rebuild it totally and change the GUI to WPF.