OnChange Event added to BorderStyle in lfm
Original Reporter info from Mantis: >8<
-
Reporter name: Bug Import
Original Reporter info from Mantis: >8<
- Reporter name: Bug Import
Description:
I have the latest CVS version of lazarus (linux)
To Reproduce:
Create a new project
add a button
Run program
without gdb this error message pops up:
Error reading Button1.BorderSpacing.OnChange: Unknown property: "OnChange".
with gdb
backtrace
GNU gdb 6.1.1
...
(gdb) run
Starting program: /tmp/project1
[FORMS.PP] ExceptionOccurred
Sender=EReadError
Exception=Error reading Button1.BorderSpacing.OnChange: Unknown property: "OnChange"
TApplication.HandleException Error reading Button1.BorderSpacing.OnChange: Unknown property: "OnChange"
Program received signal SIGINT, Interrupt.
0x403666a1 in loser_poll () from /lib/libc.so.6
(gdb) bt
#0 0x403666a1 in loser_poll () from /lib/libc.so.6
#1 0x402a77ba in g_main_is_running () from /usr/lib/libglib-1.2.so.0
#2 0x402a717e in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#3 0x402a74f5 in g_main_iteration () from /usr/lib/libglib-1.2.so.0
#4 0x400ee388 in gtk_main_iteration_do () from /usr/lib/libgtk-1.2.so.0
#5 0x0810885e in TGTKWIDGETSET__WAITMESSAGE (this=0x4046d014) at gtkobject.inc:1425
#6 0x08164852 in TAPPLICATION__IDLE (this=0x4041d104) at application.inc:317
#7 0x0816296e in TCUSTOMFORM__SHOWMODAL (this=0x403d9ba8) at customform.inc:1714
#8 0x080f816f in SHOWPROMPTDIALOG (DIALOGCAPTION=0x404162fc, DIALOGMESSAGE=0x404f80dc, DIALOGTYPE=257, BUTTONS=0x40435044, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2,
USEDEFAULTPOS=true, X=0, Y=0) at promptdialog.inc:368
#9 0x0815cad8 in TWIDGETSET__PROMPTUSER (DIALOGCAPTION=0x404162fc, DIALOGMESSAGE=0x404f80dc, DIALOGTYPE=257, BUTTONS=0x40435044, BUTTONCOUNT=2, DEFAULTINDEX=0,
ESCAPERESULT=2, this=0x4046d014) at intfbaselcl.inc:492
#10 0x080e1b68 in PROMPTUSER (DIALOGCAPTION=0x404162fc, DIALOGMESSAGE=0x404f80dc, DIALOGTYPE=257, BUTTONS=0x40435044, BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2)
at lclintf.inc:348
#11 0x080f6cc1 in MESSAGEDLG (ACAPTION=0x404162fc, AMSG=0x404f80dc, DLGTYPE=MTERROR, BUTTONS=Invalid C/C++ type code 10 in symbol table.
) at messagedialogs.inc:164
#12 0x080f4ef7 in SHOWMESSAGEBOX (TEXT=0x404f807c, CAPTION=0x404163dc, FLAGS=17) at dialogs.pp:399
#13 0x081642e1 in TAPPLICATION__MESSAGEBOX (TEXT=0x404f807c, CAPTION=0x404163dc, FLAGS=17, this=0x4041d104) at application.inc:148
#14 0x08165f5c in TAPPLICATION__SHOWEXCEPTION (E=0x40435034, this=0x4041d104) at application.inc:1066
#15 0x0816570c in TAPPLICATION__HANDLEEXCEPTION (SENDER=0x40435034, this=0x4041d104) at application.inc:808
#16 0x0815d126 in EXCEPTIONOCCURRED (SENDER=0x40435034, ADDR=0x8154f83, FRAME=0xbffff008) at forms.pp:1213
#17 0x08171860 in SYSTEM_DOUNHANDLEDEXCEPTION ()
#18 0x08171bc4 in fpc_reraise ()
#19 0x08166602 in TAPPLICATION__CREATEFORM (INSTANCECLASS=0x81fcd14 <VMT_UNIT1_TFORM1>, REFERENCE=void, this=0x4041d104) at application.inc:1273
#20 0x08179f25 in main () at project1.lpr:12
(gdb)
Affected lfm file:
object Form1: TForm1
Caption = 'Form1'
ClientHeight = 471
ClientWidth = 400
OnCreate = Form1Create
PixelsPerInch = 98
HorzScrollBar.Page = 399
VertScrollBar.Page = 470
Left = 847
Height = 471
Top = 84
Width = 400
object Button1: TButton
BorderSpacing.OnChange = nil
Caption = 'Button1'
Left = 71
Height = 25
Top = 54
Width = 75
end
end
My workaround is to remove the line Borderspacing save then run lazres unit1.lrs unit1.lfm
PS I wiped my lazarus directory and got a clean cvs checkout
Additional information:
Imported information
--------------------
Name: Andrew Haines
Mail: AndrewD207 (at) aol.com
Mantis conversion info:
- Mantis ID: 596