Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / This line generates an access violation.

Author
Message
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 15th Jun 2006 17:59
I dont know why, but it generates an access violation

else if(dbFileExist(sSplashImage_D) != 1 && sSplashImage_D[0] != 'N' && sSplashImage_D[1] != 'A')

Current Project: Galaxy Conquest
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 15th Jun 2006 18:32
Try changing the order of the condition, but also, does sSplashImage contain a valid filename. I.e. it's not pointing to an invalid memory address, causing the dbFileExist function to assert.

else if(sSplashImage_D[0] != 'N' && sSplashImage_D[1] != 'A' && dbFileExist(sSplashImage_D) != 1)

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 15th Jun 2006 18:41
Ill try that.

Just and FYI, I have that exact logic working three times before this.
A,B and C sets of splash variables work fine.

Ill try that though.

sSplash is set by data from a different file.

Current Project: Galaxy Conquest
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 15th Jun 2006 18:54
Oh boy... this is embarassing...
It wasnt working because I didnt update the section of code where sSplashImage is set

Current Project: Galaxy Conquest
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 15th Jun 2006 18:54 Edited at: 15th Jun 2006 18:58
Ahh right, it could just be that the string is invalid.

[EDIT] Simultanious post.. Ok, glad you found it

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer

Login to post a reply

Server time is: 2024-11-19 06:44:27
Your offset time is: 2024-11-19 06:44:27