Where to start looking? Illegal Memory Exception

BlitzMax Forums/BlitzMax Programming/Where to start looking? Illegal Memory Exception

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.

Hi All,

With the below code- nothing too special...
BlitzMax crashes out on "Obj:Tvector3 = New Tvector3". you get the first gebug message but not the second.

What sort of problem would cause it to crash on this line? I do not have a "NEW" method or function, so nothing is going on outside of this code.

basically RENDERABLE_getWorldPosition is a C side function which returns a pointer, the rest of the code turns it into pointers you can get/set (and it will alter C side, too.)

Just seems so odd. If i could get an idea as to what things cause this sort of crash and where to look, i'd be moving a little quicker towards my goal haha.
		DebugLog "))))))))))))))))))) Creating Tvector3"
		Local Obj:TVector3 = New TVector3
		DebugLog "Tvector3 created"
		Local tempPointer:Int Ptr = RENDERABLE_getWorldPosition( Self.Pointer )
		Obj.Pointer = Byte Ptr( tempPointer[0] )
		Obj.x = Float Ptr( tempPointer[1] )
		Obj.y = Float Ptr( tempPointer[2] )
		Obj.z = Float Ptr( tempPointer[3] )
		
		Return Obj