Double click then load my prog

Blitz3D Forums/Blitz3D Beginners Area/Double click then load my prog

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

temp_image(0)=LoadImage("images/def2.bmp")<----crashes
This is because your application is looking for the image in the wrong place. Specificly it's looking for it in the directory (folder) where your map is, because that's the "current folder".

[Edit]You can use SystemProperty("appdir") to get the proper location.
myImage = LoadImage(SystemProperty("appdir")+filename$)