New and need help

Blitz3D Forums/Blitz3D Beginners Area/New and need help

Memory Access Violation (MAV) usually means you are trying to use a graphics that isn't, in fact, loaded into memory, so when you go to try to use it, it bombs out.

For instance:

cursor=LoadImage("C:\my_blitz_image_stuff\cursor_arrow.bmp")

might bomb if there is, in fact, no image there because you actually have it stored in a different directory, or maybe the image's file name is slightly different, ie. cursorarrow.bmp instead of cursor_arrow.bmp

Best way to find out, is to check the variable you are loading the graphic into. In my above example, check to see if the variable "cursor" had a non-zero value. If contains 0, then the load did not succeed, and you will get a MAV.