This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Handle Change of Count of Monitors.

We have/had some rare exception when the application run and the pc goes into power save mode ore the user disconnects/reconnects Remote Desktop-Connection.

We have one exception trace and this point to the problem that the elpack-implementation don't check if a monitor is pressend at the current point.

We change the line

  LNMon := Screen.MonitorFromPoint(q).MonitorNum;

to

  Mon := Screen.MonitorFromPoint(q);

  if not Assigned(Mon) then
    exit;

  LNMon := Mon.MonitorNum;

to handle this very special situation where the amount of monitors changes.


Comments

Sign In or Register to comment.