1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-21 16:55:01 -05:00

Simba: Catch exceptions in GetClipBoard and SetClipBoard

This commit is contained in:
John P (Dgby714) 2010-10-10 17:18:23 -04:00
parent 7f23ae10b5
commit 067f6363fe

View File

@ -267,10 +267,20 @@ end;
procedure ps_SetClipBoard(const Data: string); extdecl;
begin
Clipboard.AsText := Data;
try
Clipboard.AsText := Data;
except
on e: exception do
mDebugLn('Exception in SetClipBoard: ' + e.message);
end;
end;
function ps_GetClipBoard: string; extdecl;
begin
Result := Clipboard.AsText;
try
Result := Clipboard.AsText;
except
on e: exception do
mDebugLn('Exception in GetClipBoard: ' + e.message);
end;
end;