If you are doing some messing with surfaces, you need to make sure if it's a mesh. Strangely lights do return a zero when using countsurfaces, while pivots, cameras, and terrains report a Memory Access Violation. I think that's one of the only circumstances where Blitz does not report a logical error...Could be wrong though...
Fredborg
Graphics3D 640,480,16,0 camera = CreateCamera() light = CreateLight() pivot = CreatePivot() mesh = CreateMesh() terrain = CreateTerrain(2) DebugLog "CountSurfaces on a mesh = "+CountSurfaces(mesh) DebugLog "CountSurfaces on a light = "+CountSurfaces(light) DebugLog "CountSurfaces on a pivot = "+CountSurfaces(pivot) DebugLog "CountSurfaces on a camera = "+CountSurfaces(camera) DebugLog "CountSurfaces on a terrain = "+CountSurfaces(terrain) EndPut it in the 'Blitz3D Bug Reports' forum as well..
Fredborg