Illegal Memory Address
Blitz3D Forums/Blitz3D Beginners Area/Illegal Memory Address
| ||
Putting just the name of a picture (and having it in the same directory) in the program code doesn't work for .exe's like it does for running through compiler. Can I put something similar to "../Picture.bmp" in the directory to load images/ textures and have it work (if images are in same directory as .exe). |
| ||
Do you have any code to demonstrate your problem? That shouldn't happen. |
| ||
cube=CreateCube() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; cubetex=LoadTexture("C:/Documents and Settings/Owner/My Documents/My Programs/BB/Testing/Water.bmp") ;Using this method works but I'd like to be able to use a shortcut. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EntityTexture cube,cubetex plane=CreatePlane() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; planetex=LoadTexture("Water2.bmp") ;This only works when running through Blitz3D compiler and as an executable. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EntityTexture plane,planetex |
| ||
What version of blitz are you running? |
| ||
The About Blitz Basic in the help menu says: IDE V1.64 - Linker V1.64 - Runtime V1.64 Is there a way to get updates and stuff? |
| ||
There's an Update Forum :) |
| ||
I downloaded and installed V1.90 but I still get the same error. Does anyone know a shortcut to the directory the executable is in? |
| ||
SystemProperty( "AppDir" ) |
| ||
Hmmmm, could you post a zip file with everything in it. So we can test exactly what your doing :o) |
| ||
If you're running your exe via a shortcut, you may need to addChangeDir SystemProperty("AppDir") somewhere at the start of your code, which is what Floyd was getting at, I think. |