I need to close class instance at the end of code when not needed anymore ,haw can I do that
--- Update ---
it is a instance that run own threads and can be up to 3000 or more instances but I set threads limit to save pc so max 20-30 instances running and creating 50 by 50 instances but I'm having some bug that freeze app each time at about 240 instances 20-30 running but 240 instances opened maybe that cause freezing how can I self close each instance at the end of code please help
Re: close class
Setting an instance to null will nominate it for garbage collection.