GCSuspend()

BlitzMax Forums/BlitzMax Programming/GCSuspend()

This seems to suggest GCSuspend() and GCResume() don't cause memory leaks.

Let it run for a few seconds, then press Space.
Strict
Graphics 800,600

GCSuspend()

While Not KeyDown(key_escape)
	Cls
	DrawText GCMemAlloced(),10,10
	Flip
	If KeyHit(key_space)
		GCResume()
	EndIf
Wend
End