Weird behaviour when loading meshes

Blitz3D Forums/Blitz3D Programming/Weird behaviour when loading meshes

hmmm I'm afraid that didnt work. I'm really out of ideas :(
this is the full code.

Graphics3D 800,600,32,0
SetBuffer BackBuffer()

c=CreateCamera()
PositionEntity c,0,20,-20

e=LoadMesh ("level\level_swamp.b3d")
If e=0 RuntimeError "I dont exist ONE"


a=LoadAnimMesh ("level\level_swamp.b3d") ;memory acces violation here
If a=0 RuntimeError "I dont exist TWO"

ScaleEntity e,3,3,3

While Not KeyDown(1)
	TurnEntity c,1,1,1
	UpdateWorld
	RenderWorld
	Flip
Wend
End