I has such errors when using non-latin paths to project.
Try this - create "myproject" in C drive root
Put there projects bmx file, shaders.pak and newton.dll
Framework leadwerks.engine
registerabstractpath(AppDir)
Graphics 800,600
createworld()
while not keyhit(KEY_ESCAPE) or Appterminate()
RenderWorld()
Flip()
wend
It mast to work, blitzmax+Leadwerks2 is very stable.