Sorry I have searched before posting but I couldn't find a solution to this.
When I call dbLoadObject in the following way it fails
SetCurrentDirectory ( "media" );
dbLoadObject ( "Cargo.X", Ship );
To check if the object loads I added the following
if (dbObjectExist ( Ship ))
return;
but the program never ends. My first thoughts were that either it wasn't seeing the right directory or that the object was corrupt.
I have a test further on to check we are actually in the media folder so I know it is not this.
I wrote a quick test in DBPro and the object loaded fine, so now I am stuck as to what the problem might be. Any help please?
Signature removed by moderator. Please do not give out the meaning of life in an open forum.