Unhandled Exception:Attempt to access field or met

BlitzMax Modules Forums/MiniB3D/Unhandled Exception:Attempt to access field or met

Error is here :
glDrawElements(GL_TRIANGLES,surf.no_tris*3,GL_UNSIGNED_SHORT,surf.tris)