handle "cannot open clipboard" error

Giganews Newsgroups
Subject: handle "cannot open clipboard" error
Posted by:  scchui (nospam)
Date: Fri, 1 Sep 2006

Hi,

  I use clipboard as:

try
  if Clipboard.HasFormat(CF_TEXT) then
  begin
      ......
  end;
finally
  Clipboard.Close;

  Sometimes, though rare, I get a window pop up "cannot open clipboard"
error . I would like to know how can I handle this error so that the user
would see the pop up window . Thanks in advance for help.

Rgds,
scchui

Replies