wierd type problem...

Blitz3D Forums/Blitz3D Programming/wierd type problem...

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.

'Delete v' certainly won't delete the ship, but it will probably mess up the camera.

Notice that *every* call to PopCamera deletes one vector.
So after enough calls they are all gone.

Consider this example:

Type Vector3
	Field x#,y#,z#
End Type

Local v1.Vector3, v2.Vector3  ; Will be vectors, right now they are Null.

If v1 = Null Then Print "v1 is Null"

v1 = New Vector3  ; creates actual vector for v1.

v2 = v1  ; v2 and v1 both point at the same object (vector).

v1\x = 123

Print "v2\x = " + v2\x  ; v2 is just another name for v1

Delete v2

Print v1\x  ; Error, object pointed to by v1 no longer exists

WaitKey 
End