[Lazarus] Creation of event handlers problem

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 25 00:31:41 CET 2012


On Fri, 24 Feb 2012 18:59:35 +0200
"Dimitrios Chr. Ioannidis" <d.ioannidis at artesoft.gr> wrote:

> Hi,
> 
>   i just update fpc from fixes_2_6 and now lazarus can't create event
> handlers. I tried with a clean fpc checked out tree and even i done the
> the same with lazarus tree. Everything was deleted, checked out again
> and recompiled. The problem persists.
> 
>   It's very easy to reproduce. Create a new project, add a button and
> double click on it. 
> 
> Debian Squeeze AMD64.
> 
> Lazarus version 
> builded with "make all OPT="-gl -gw -Xs -Xg -godwarfsets" "
> 
> "URL: http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30
> Revision: 35581
> Last Changed Rev: 35554
> Last Changed Date: 2012-02-22 14:01:15 +0200 (Τετ, 22 Φεβ 2012)"
> 
> FPC version
> builded with " make all install OPT="-gl -gw -Xs -Xg -godwarfsets"
> INSTALL_PREFIX=~/Programming/Tools/fpc
> FPC=~/Programming/Tools/fpc/bootstrap/ppcx64 "
>  
> "URL: http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
> Revision: 20423
> Last Changed Rev: 20380
> Last Changed Date: 2012-02-19 23:30:08 +0200 (Κυρ, 19 Φεβ 2012)"
> 
> Below is the console output of lazarus running from terminal
> 
> "TGDBMIDebugger.StartDebugging
> WorkingDir="/home/itmanager/Programming/Projects/MSAWSTItems/"
> [Debugger] Log output: &"set width 50000\n"
> [Debugger] Log output: &"info address main\n"
> [Debugger] Log output: &"ptype TObject\n"
> [Debugger] Log output: &"ptype Exception\n"
> [Debugger] Log output: &"ptype Shortstring\n"
> [Debugger] Log output: &"ptype pointer\n"
> [Debugger] Log output: &"ptype byte\n"
> [Debugger] Log output: &"info address FPC_RAISEEXCEPTION\n"
> [Debugger] Log output: &"info address FPC_BREAK_ERROR\n"
> [Debugger] Log output: &"info address FPC_RUNERROR\n"
> [Debugger] Log output: &"info file\n"
> [Debugger] File type: elf64-x86-64
> [Debugger] Entry point: 0x49c890
> [Debugger] Log output: &"Function \"foo\" not defined.\n"
> [Debugger] Console output: ~"[Thread debugging using libthread_db
> enabled]\n"
> [Debugger] Log output: &"info program\n"
> [Debugger] Target PID: 27478
> [Debugger] Notify output: =thread-exited,id="1",group-id="27478"
> [Debugger] Notify output: =thread-group-exited,id="27478"
> [TDebugger.SetFileName] ""
> TDesigner.InvokeComponentEditor A Button1:TButton
> TDesigner.InvokeComponentEditor B TDefaultComponentEditor
> ### TCodeToolManager.HandleException: "identifier expected, but property
> found" at Line=234 Col=5 in
> "/home/itmanager/Programming/Tools/fpc/source/rtl/objpas/classes/classesh.inc"
> TDesigner.InvokeComponentEditor ERROR: Unable to find method. Please fix
> the error shown in the message window."
> 
> Does someone has a hint ?

2.6.1 now supports type/const/var sections in classes. The old IDE
didn't support that completely. I improved it a bit in svn fixes trunk.

Lazarus 0.9.31 fully supports it. Some parts were rewritten for that,
which will not be backported to 0.9.30.

Mattias




More information about the Lazarus mailing list