Hi,
I'm trying to compile r13078 with the release version 0.9.24. I'm
running Ubuntu and have 0.9.24 compiled with GTK1. I got a compiler
error in one of my installed packages.
Problem 1:
----------------
<lazarus>/examples/exploremenu/exploremenu.lpk <---- Fails to
compile. A error in the Register method.
Problem 2: (more serious)
------------------------------------
I then wanted to copy and paste the compiler messages from the
Messages Window to report the problem. I rightclick the Messages
Window and select Copy all and Hidden messages.
I then opened Gnomes gEdit editor to paste the meassage.
As soon as I click Paste in gEdit's toolbar, Lazarus crashes instantly...
Here is the backtrace. For a change I can reproduce the error every time! :-)
----------------------------------------------
Breakpoint 1, 0x08060f96 in fpc_raiseexception ()
(gdb) continue
Continuing.
Hint: End of reading config file /home/graemeg/.fpc.cfg
Warning: You are using the obsolete switch -OG
Free Pascal Compiler version 2.2.0 [2007/08/31] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling exploreidemenu.pas
Compiling frmexploremenu.pas
frmexploremenu.pas(77,62) Error: Incompatible type for arg no. 5: Got
"<address of procedure(TObject);Register>", expected "<procedure
variable type of procedure(TObject) of object;Register>"
menuintf.pas(503,10) Hint: Found declaration:
RegisterIDEMenuCommand(const AnsiString,const AnsiString,const
AnsiString,const AnsiString="R�",const TNotifyEvent="nil",const
TNotifyProcedure="nil",const TIDECommand="nil"):TIDEMenuCommand
menuintf.pas(486,10) Hint: Found declaration:
RegisterIDEMenuCommand(TIDEMenuSection,const AnsiString,const
AnsiString,const AnsiString="�R�",const TNotifyEvent="nil",const
TNotifyProcedure="nil",const TIDECommand="nil"):TIDEMenuCommand
frmexploremenu.pas(144) Fatal: There were 1 errors compiling module, stopping
TExternalToolList.Run Exception:
/opt/lazarus/examples/exploremenu/frmexploremenu.pas(144) Fatal: There
were 1 errors compiling module, stopping
Gdk-ERROR **: file gdkselection.c: line 246
(gdk_string_to_compound_text): assertion failed: (property.encoding ==
gdk_atom_intern ("COMPOUND_TEXT", FALSE) && property.format == 8)
aborting...
Program received signal SIGABRT, Aborted.
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7a94875 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7a96201 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7eb8002 in g_logv () from /usr/lib/libglib-1.2.so.0
#4 0xb7eb8045 in g_log () from /usr/lib/libglib-1.2.so.0
#5 0xb7e9376f in gdk_string_to_compound_text () from /usr/lib/libgdk-1.2.so.0
#6 0x08206878 in CLIPBOARDSELECTIONREQUESTHANDLER (TARGETWIDGET=0x8a47d00,
SELECTIONDATA=0xbfd48614, INFO=1, TIMEID=2344953433, DATA=0x0) at
gtkcallback.inc:3537
#7 0xb7cdb865 in gtk_marshal_NONE__POINTER_INT_INT () from
/usr/lib/libgtk-1.2.so.0
#8 0xb7d0f2f5 in ?? () from /usr/lib/libgtk-1.2.so.0
#9 0x08a47d00 in ?? ()
#10 0x08206640 in CLIPBOARDSELECTIONRECEIVEDHANDLER (TARGETWIDGET=0xbfd482d8,
SELECTIONDATA=0x0, TIMEID=0, DATA=0xbfd4825c) at gtkcallback.inc:3464
#11 0xb7d103e3 in ?? () from /usr/lib/libgtk-1.2.so.0
#12 0xbfd482d8 in ?? ()
#13 0x00000000 in ?? ()
(gdb)
-----------------------------------------------
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives