Saved Window Posistion - Off Screen


So for whatever reason the form will occasionally store the values for X and Y to -32,000 for the form position, forcing it WAY off the screen.

The work-arounds for this are: to blow away the config XML file for the program, and it will default to center screen; edit the XML file to put X and Y at about 100 or 200; leave the window in the upper left corner before quiting the program, it seems to be ok with that.

On the code side, the fix is not to allow those negative values to be written or read (in which case, the behavior will improve, but the root cause is still unknown).

This might be due to dual monitor usage, hard to tell... if anyone else experiences it, please comment to help me track it down.
Closed Apr 10, 2014 at 7:06 AM by dsparksColossus


dsparksColossus wrote Dec 18, 2013 at 10:58 PM

Ok, so I've adjusted the setting-saving routines to reject values less than 0, and if they crop in anyways, set them to 0. This should help but it occasionally causes the window to shoot up to the top left corner. Not ideal, but manageable and FAR better than a window that just opens up 32000 pixels off-screen!

wrote Dec 18, 2013 at 11:05 PM

dsparksColossus wrote Apr 10, 2014 at 7:05 AM

Mitigated in recent version where the setting storage and recovery serializer no longer accepts values < 0. The serializer will set anything < 0 to 0. This should fix the issue permanently.

wrote Apr 10, 2014 at 7:06 AM