[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - Barca 2.5 Clipboard Bug

Barca 2.5 Clipboard Bug

Help and advice on using Barca

Moderators: Eric, Tomas, robin

Barca 2.5 Clipboard Bug

Postby Shark » Sun Jan 27, 2008 11:00 am

If I use Ctrl+C to copy something to clipboard there is about 25% chance I get this error message dialog:

Title: Barca 2
Message: Cannot open clipboard.

The text is going to the clipboard.

The message is extremely annoying, working on 100 mails results in 25 messages that have to be clicked away.

Barca 2.0 had this problem, but it occured once a day, not every few emails.
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Postby Tomas » Wed Jan 30, 2008 8:48 am

One of possible causes might be that there is some other program in conflict with Barca.
Particularly if you have some clipboard extender, notetaking program working with clipboard, etc.
Try closing all other programs running, and testing whether it helped, some chances are that it could give us a pointer where to start digging if the issue will disappear.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby Shark » Wed Jan 30, 2008 1:43 pm

Is Barca written in Delphi? I was thinking so because I encountered the same problem years ago in my apps, buch much less often.

I solved it by placing all clipboard operations in try except blocks and preventing the dialogs.

e.g.

try
myClip.SetTextBuf(p);
except
end;

The point is that the error dialog is simply wrong (it has surely some cause, but most probably something negligible like a not closed handle).

Barca pops out these errors, but no functionality is lost, all copy, pastes and cuts are always working.

I'm also sure a conflict with a different app is happening (as you suggested), but the point is that Barca is spamming the error dialogs, not any other app (and with spamming I mean up to 10 dialogs a minute).
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Postby Tomas » Thu Jan 31, 2008 4:59 am

Shark wrote:Is Barca written in Delphi?

Yes, it is written in some version of Delphi, not sure which.
You raised good point, that sounds very probable, particularly if the clipboard is working and error message is still raised.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby Shark » Tue Feb 12, 2008 3:12 am

I've discovered today that the problem only happens if I use ctrl x c v, not if I use the menu. The dialogs drive me crazy. I'm almost at the point of abandoning barca.

Image

As clipboard manager I use ClipControl:

http://sourceforge.net/projects/clipcontrol
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Postby Shark » Fri Feb 22, 2008 10:27 am

I've tried another Clipboard manager (CLCL 1.1.1) and Barca still gives errors. With no Clipboard manager running there are no Barca errors.
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Postby Shark » Sun Aug 31, 2008 7:02 am

I know the source of the problem. If the Barca coder is interesting in fixing this bug I can provide the source code. PM me.
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Postby Shark » Tue Jan 06, 2009 3:46 pm

Here is the correct Delphi code to copy a text to clipboard:

Code: Select all
function lu_PutTextToClipboard(s:string):boolean;
begin
  Result := False;
  try
     while not Result do
     begin
          if OpenClipboard(Application.Handle) then
          begin
               Result := True;
               Clipboard.AsText := s;
               CloseClipboard;
          end
          else Sleep(5);
     end;
  except
  end;
end;


I'm sure Barca writes directly to the Clipboard without checking with OpenClipboard() first if the Clipboard is free to access (Clipboard is not Thread safe!). This causes a bunch of problems with Clipboard Managers.
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Re: Barca 2.5 Clipboard Bug

Postby irix » Mon Feb 28, 2011 2:50 am

This problem still exsists in Pocomail 4.8.0.4400 :(
irix
New Arrival
 
Posts: 4
Joined: Mon Jul 12, 2010 10:44 pm

Re: Barca 2.5 Clipboard Bug

Postby Shark » Wed May 25, 2011 8:25 am

Yes, it does still exist. The problem is that the Pocomail/Barca Coder assumed the Clipboard Object is instance handled, but there is only one global Clipboard object for all Windows applications. If you access the Clipboard there may be a failure if another program accesses it at the same time. You have to check for such failure and repeat the clipboard operation. Pocomail/Barca displays an ugly error message instead.
Shark
Poco Tourist
 
Posts: 31
Joined: Sat Mar 31, 2007 3:48 am

Re: Barca 2.5 Clipboard Bug

Postby rthamper » Fri Jul 29, 2011 6:40 am

The bug is a regular occurring "feature" of Pocomail 4 for me even now. I use Clipmate as a "clipboard extender", and I suspect that's what's conflicting with the Pocomail code.

I hope that after all this time that Pocosystems will finally come up with a fix that works.
--- Rich
rthamper
New Arrival
 
Posts: 4
Joined: Tue Dec 21, 2004 6:24 pm


Return to Barca Help and How-To

Who is online

Users browsing this forum: No registered users and 2 guests

cron