On Sat, 17 Dec 2005 11:10:24 -0200
Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote:

> Michalis Kamburelis wrote:
> > Try
> >   old_error := XSetErrorHandler(@TempX11ErrorHandler);
> > (i.e. add "@" there). AFAIK during 2.0.1 some changes were made to 
> > require "@" in more situations when passing pointer to procedure.
> 
> This is how it was originaly, I edited to remove the @. Here is the 
> error on the same line with the @:
> 
> gtktrayicon.pas(302,53) Error: Incompatible type for arg no. 1: Got 
> "<address of function(Pointer, PXErrorEvent):LongInt;CDecl>", expected 
> "<procedure variable type of function(PDisplay, 
> PXErrorEvent):LongInt;CDecl>"
> 
> strange .... I think there are two declarations of PDisplay on different 
> LCL units and this could be causing the error.

Where are the two?

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to