Hi,
I really can't explain why dbFileExist crashed my program, I tried following steps to find out why:
I copied the code (edit; only the one in question) into a new project and tried it: worked.
In my original project, at the place where I used dbFileExist I use fopen to find out whether the file exists: worked.
the code now looks like this, and crashes on the line of dbFileExist:
FILE* fd = fopen (s_full_path, "r");
int file_exists = 0;
if (fd != NULL) {
file_exists = 1;
fclose (fd);
}
file_exists = dbFileExist(s_full_path);
This is weird, isnt iT?????
The string at runtime in s_full_path is:
s_full_path 0x0c7bde78 "C:\WINDOWS\fonts\lblack.TTF" char *
edit; the forum cuts out the backslashes hmm but the string is correct, and my function returns true!!
Anyone? Understands? this?
I. Don't.
edit: any idea what I can do to determine the source of the problem?
-- I just started with DarkSDK, by translating DBP Projects. --