Illegal memory address
Blitz3D Forums/Blitz3D Beginners Area/Illegal memory address
| ||
Whenever I try to run this code I made it shows an error called 'Illegal memory address' Here's the code: Graphics3D 1024,768,32,2 SetBuffer BackBuffer() ground = CreatePlane() POV = CreateCamera() sky = CreatePlane() light = CreateLight() skytex = LoadTexture("sky.jpg") groundtex = LoadTexture("grass.jpg") EntityTexture ground,groundtex EntityTexture sky,skytex RotateEntity sky,0,0,180 PositionEntity sky,0,100,0 While Not KeyHit(1) Flip Wend End Does anyone know the fix to this? If so please reply. Thanks. |
| ||
Are you running in debug mode? If so it will highlight the offending line when the error comes up. It will also display, in a panel on the right, the current values of all the variables, which you can use to check if any of them are off (zeroes will mean something could not be loaded, i.e. the file doesn't exist in the specified place). |