I changed a BUNCH of the code of my game without re-running (I know, a bad thing to do with DarkBasic), and now I'm getting a wierd error... When I choose "PLAY" from my main menu, a dialog box pops up that says:
Runtime Error 501 - Image number illegal at line 1121
Ok, here is the wierd part. The first thing my code does is load ALL of the images the whole app needs, so by this point, ALL of the image are loaded.
The second wierd thing is this: line 1121 is an :endcase! I have this SELECT statement that assigns an image number to a variable based on another variable.
case ICE_CUBE_COLOR_COLOR8:
image_num = 135
:endcase
paste image image_num, a, b, 1
I rewrote the code to use a bunch of IF's instead of a SELECT and I get the same thing!
Anyone ever see anything like this before?
Tony