manipulation of a reference counte

BlitzMax Forums/BlitzMax Programming/manipulation of a reference counte

No it isn't

pointers are unmanaged, only references are managed.


Strict

'test app for ref count on pointers

Type test
	Field bla:String
End Type


Local a:test = New test
Local b:test Ptr

a.bla = "good morning"
b	= Varptr a

Print a.bla
a	= Null
FlushMem

Print b[0].bla
Delay 2000
End