Patrick Chevalley wrote:
Hi,
After SVN 8961 my application crash when I close a setting panel, it
work with 8960. I use Linux, Gtk, SVN 9015.
I isolated the problem in the attached zip file: click the Show button,
then close the second form, it crash.
I only get the problem if all this conditions are meet:
- the combobox onchange event use the itemindex property.
- the combobox is in a form we call with showmodal.
It crash when we close the form independently of the modalresult.
Here the backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x08119ec8 in GETCOMBOBOXITEMINDEX (COMBOBOX=0xb7a510fc) at
gtkproc.inc:1000
#2 0x081bfc80 in TGTKWSCUSTOMCOMBOBOX__GETITEMINDEX
(ACUSTOMCOMBOBOX=0xb7a510fc,
pvmt=0xb7abcd6c) at gtkwsstdctrls.pp:621
#3 0x0815757b in TCUSTOMCOMBOBOX__GETITEMINDEX (this=0xb7a510fc)
at customcombobox.inc:757
#4 0x08077bb9 in TFORM2__COMBOBOX1CHANGE (SENDER=0xb7a510fc,
this=0xb7a4eb2c)
at unit2.pas:35
#5 0x08155ef2 in TCUSTOMCOMBOBOX__CHANGE (this=0xb7a510fc) at
customcombobox.inc:170
#6 0x08155f3c in TCUSTOMCOMBOBOX__SELECT (this=0xb7a510fc) at
customcombobox.inc:183
#7 0x08157929 in TCUSTOMCOMBOBOX__LMSELCHANGE (THEMESSAGE=void,
this=0xb7a510fc)
at customcombobox.inc:855
#8 0x0805d770 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#9 0x0810a2de in TCONTROL__WNDPROC (THEMESSAGE=
{MSG = 564, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0,
WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0},
this=0xb7a510fc) at control.inc:1534
#10 0x08101e39 in TWINCONTROL__WNDPROC (MESSAGE=
{MSG = 564, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0,
WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0},
this=0xb7a510fc) at wincontrol.inc:3347
#11 0x0811e6c5 in DELIVERMESSAGE (TARGET=0xb7a510fc, AMESSAGE=void) at
gtkproc.inc:3462
#12 0x08129efa in GTKLISTSELECTCHILD (WIDGET=0x82f9450, CHILD=0x82faff0,
DATA=0xb7a510fc)
at gtkcallback.inc:3133
#13 0xb7d66d31 in gtk_marshal_NONE__POINTER () from
/usr/lib/libgtk-1.2.so.0
#14 0x082f9450 in ?? ()
#15 0x082faff0 in ?? ()
I just look if I find an occurence of this problem within Lazarus, there
is one!
Try Environment, Debugger Options, OK.
Seems the same as issue 1927:
http://www.lazarus.freepascal.org/mantis/view.php?id=1927
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives