Weird behaviour when loading meshes

Blitz3D Forums/Blitz3D Programming/Weird behaviour when loading meshes

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.

DEMO OF PROBLEM HERE: http://wobbles.hku.nl/test.rar

Graphics3D 800,600,32,0
SetBuffer BackBuffer()
e=LoadMesh ("level/level_swamp.b3d")
a=LoadAnimMesh ("level/level_swamp.b3d")


The code above works when I place my project (all files and media) in map 'X'. But when I copy the media to another folder, folder 'Y', Blitz crashes.

When I place the line
e=LoadMesh ("level/level_swamp.b3d")

above
a=LoadAnimMesh ("level/level_swamp.b3d")

...blitz crashes on the second line.
But Blitz also crashes when I swap those two lines! (when swapped, it crashes on the second line too -> loadMesh)

This is weird behaviour. Blitz (1.86) only gives me a memory access violation, nothing more.

What am i doing wrong here? Thank you