Help Memory Usage Again

Blitz3D Forums/Blitz3D Beginners Area/Help Memory Usage Again

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Trying this test program:
Type player
	Field stuff
End Type

Dim p.player(1000)

For iteration = 1 To 5
	Print iteration

	WaitKey
	
	;create all players
	For x=1 To 100
		p(x)=New player
		p(x)\stuff=1
	Next
	
	WaitKey
	
	;delete all players
	For pk.player=Each player
		Delete pk
	Next
Next

The memory goes up 1 time only (the first time) by about 32 kilobytes. After that, it stays put. It appears that the memory is being reused.

Are you sure you are not leaving some memory hanging, like a type within a type, or a media handle (image, sound)?