Okay, I tried it with your version of the function getscreenres and ended up without SED-Crashes but still with Error E1513 "Crash in getscreenres". Also xvalue seems to behave eradically. Each test run it changes displaying negative and positive values in the thousands.

I also tried the following code without success:

Code:
function getscreenres()
{
	SCRMODE resolution;	
	rvalue = EnumDisplaySettings(NULL, 1, &resolution); // mind the '&'
	xvalue = &resolution.dmPelsWidth; // another '&'
}


I must be getting something very basic very wrong.


A8.10 Commercial