I've had no issues with variables going blank, to me it just seems as if all the stuff on the graphics card RAM is wiped - which given the task of changeing resolutions is totally understandable.
However, as the fastest way for a DBPro app to run in my opinion is Fullscreen Desktop mode, and your application is fastest of all when using the same resolution as the desktop I just set my games to that resolution now.
This code has been rewritten by various people including myself, last author was IanM and it seems to work very well.
hdc as dword
load dll "user32.dll",1
load dll "gdi32.dll", 2
x=call dll(1,"GetSystemMetrics",0)
y=call dll(1,"GetSystemMetrics",1)
hdc=call dll(1, "GetDC", 0)
c=call dll(2, "GetDeviceCaps", hdc, 12)
call dll 1, "ReleaseDC", 0, hdc
delete dll 2
delete dll 1
set display mode x,y,c
Pneumatic Dryll
