Hello,
I have this issue coming up when I try to force my application to go into full screen.
So I reproduced it in this small program here
Rem Project: VideoResCrash
Rem Created: Sunday, June 24, 2012
REM ** SET DISPLAY MODE **
SET WINDOW POSITION 1, 1
If CHECK DISPLAY MODE(1024,768,32)=1
set Display Mode 1024,768,32 ,Vsync
sync on : sync rate 24
set window off
else
set Display Mode 1024,768,32 ,Vsync
sync on : sync rate 24
set window on
endif
REM *** Splash Set Screen Up **
Gosub SetupGameVariables
Gosub SplashScreen1
Do
Paste Image 1,0,0,0
Sync
REM Press ESC to exit program
Loop
SetupGameVariables:
ExitGame=0
Load Image "media\splashx1024.jpg", 1 ` example splash screen
Return
SplashScreen1:
` wait 100*8 ` doesn't seem to help
For X = 1 to 2
Paste image 1, 0,0,0
Sync
next x
T=Timer()
Repeat
Elapsed=(Timer()-T)/10
Until Elapsed=80: Rem change this value to alter the length of the timer
Return
Notice at the beginning I check if the resolution is supported and if so then I set the "set window off" command to force it to launch full screen.
ONLY if my screen resolution is set to something OTHER than 1024x768 then my application crashes with the "Runtime Error 502 ; image does not exist"
IF I either set my resolution to 1024x768 before I launch the application or just use the "set window on" then no problem occurs.
This is a HUGE deal for me because I can not submit my game to most of the sites I want to send it to due to this issue ; they want the game to launch in 1024x768 full screen mode. If any customer or QA tester's video mode is not already on that my application will crash every single time.
So any assistance on to why this is happening or how to work around it is GREATLY appreciated.
Image attached should go in a /media subfolder.
Thank you in advance for any insight.
NOTE: I did search the forums and found a couple of 502 errors but they appeared to be legitimate image missing issues -- whereas mine clearly is not missing the image something else is going on.