Um, does Print Consume memory then?

BlitzMax Forums/BlitzMax Programming/Um, does Print Consume memory then?

Grey Alien(Posted 2007) [#1]
I'm not getting the same result for each of these calls:

Print GCMemAlloced()
Print GCMemAlloced()
Print GCMemAlloced()

Stick a GCCollect() before each one and you get the same values. So print must consume some memory. Worth bearing in mind when writing routines testing memory use!


Azathoth(Posted 2007) [#2]
You're passing the result of GCMemAlloced() as a string which takes up memory.


Grey Alien(Posted 2007) [#3]
aha thanks.