GCCollect

BlitzMax Forums/BlitzMax Beginners Area/GCCollect

yossi(Posted 2014) [#1]
should I use GCCollect in order to release unreferenced instances
or it happen automaticly ?

I know that in c# the garbage collector work automaticly but we cant know when exectly it works and we can steal call him manually.

does the garbage collector in blitz max works the same way?


xlsior(Posted 2014) [#2]
Yes -- typically you shouldn't have to mess with it.


ziggy(Posted 2014) [#3]
Yes, you do not need to worry aboutunreferenced instances. BlitzMax will do it for you.


yossi(Posted 2014) [#4]
thank you.


Grisu(Posted 2014) [#5]
Sorry for the hijack, is there a way to force the garbage collector to free memory more often?


Brucey(Posted 2014) [#6]
Call GCCollect more often? :-)


Grisu(Posted 2014) [#7]
I thought this would cause other issues. But I'll give it a try.

Thanks!