Mattias Gaertner wrote 29 lines
On Sat, 22 Nov 2003 11:13:33 -0800 Ken Moffat wrote:
>I receive this error when closing Lazarus with a project open that
>contains 2 maskedits linked to 2 up/down controls. Everything else
>deletes fine, this is the only error. (It shows a message box; the below
>error message is from the xterm I ran lazarus from)
>
>TCustomFormEditor.DeleteControl TMASKEDIT FALSE
>TComponentInterface.Delete ERROR: "Maskedit1:TMASKEDIT" Access violation
>
>
Seems to work.
Please start the IDE with gdb and reproduce the error:
[] cd your/lazarus/dir
[] gdb lazarus
(gdb) run
...
(gdb) bt
Mattias
Application works fine. On Closing Lazarus with project open:
[snip]
TCustomFormEditor.DeleteControl TMENUITEM FALSE
[TDesigner.Notification] opRemove Menuitem1:TMENUITEM TCustomFormEditor.DeleteControl TMAINMENU FALSE
[TDesigner.Notification] opRemove Mainmenu1:TMAINMENU TCustomFormEditor.DeleteControl TMASKEDIT FALSE
[TDesigner.Notification] opRemove Maskedit2:TMASKEDIT TCustomFormEditor.DeleteControl TMASKEDIT FALSE
Program received signal SIGSEGV, Segmentation fault. $082aaa6b in TCUSTOMUPDOWN__SETASSOCIATE (VALUE=$0, this=$40730304) at customupdown.inc:335
335 customupdown.inc: No such file or directory. in customupdown.inc
(gdb) bt
#0 $082aaa6b in TCUSTOMUPDOWN__SETASSOCIATE (VALUE=$0, this=$40730304) at customupdown.inc:335
#1 $082aad5a in TCUSTOMUPDOWN__NOTIFICATION (ACOMPONENT=$4072a104, OPERATION=OPREMOVE, this=$40730304) at customupdown.inc:396 #2 $08352099 in
_CLASSES$$_$$_TCOMPONENT_$$_NOTIFICATION$TCOMPONENT$TOPERATION ()
#3 $083130f2 in TCONTROL__NOTIFICATION (ACOMPONENT=$4072a104, OPERATION=OPREMOVE, this=$4074dab4) at control.inc:1696 #4 $08304fa2 in TCUSTOMFORM__NOTIFICATION (ACOMPONENT=$4072a104, OPERATION=OPREMOVE, this=$4074dab4) at customform.inc:147 #5 $0835272e in _CLASSES$$_$$_TCOMPONENT_$$_REMOVECOMPONENT$TCOMPONENT () #6 $0835247a in _CLASSES$$_$$_TCOMPONENT_$$_DESTROY () #7 $08314304 in TCONTROL__DESTROY (this=$4072a104) at control.inc:2407 #8 $0830f457 in TWINCONTROL__DESTROY (this=$4072a104) at wincontrol.inc:2306
#9 $08362f6f in _SYSLINUX$$_$$_TOBJECT_$$_FREE () #10 $080ef38a in TCOMPONENTINTERFACE__DELETE (this=$40566e14) at customformeditor.pp:611
#11 $080efc4e in TCUSTOMFORMEDITOR__DELETECONTROL (ACOMPONENT=$4072a104, FREECOMPONENT=true, this=$4057f4d4) at customformeditor.pp:743 #12 $080efa50 in TCUSTOMFORMEDITOR__DELETECONTROL (ACOMPONENT=$4074dab4, FREECOMPONENT=true, this=$4057f4d4) at customformeditor.pp:716 #13 $080f4858 in TDESIGNER__DELETEFORMANDFREE (this=$4074f754) at designer.pp:347
#14 $0828c1a6 in TMAINIDE__CLOSEDESIGNERFORM (ANUNITINFO=$4065a1f4, this=$40503a94) at main.pp:3660
#15 $0828e8b3 in TMAINIDE__DOCLOSEEDITORFILE (PAGEINDEX=0, FLAGS=[CFPROJECTCLOSING], this=$40503a94) at main.pp:4361 #16 $08291506 in TMAINIDE__DOCLOSEPROJECT (this=$40503a94) at main.pp:5130 #17 $0828255c in TMAINIDE__MAINIDEFORMCLOSEQUERY (SENDER=$40503a94, CANCLOSE=true, this=$40503a94) at main.pp:987
#18 $08306526 in TCUSTOMFORM__CLOSEQUERY (this=$40503a94) at customform.inc:1080
#19 $0830644a in TCUSTOMFORM__CLOSE (this=$40503a94) at customform.inc:1036 #20 $08306539 in TCUSTOMFORM__WMCLOSEQUERY (MESSAGE= {MSG = 1086, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$40503a94)
at customform.inc:1088
#21 $083634e5 in _SYSLINUX$$_$$_TOBJECT_$$_DISPATCH$$$$ () #22 $083128cd in TCONTROL__WNDPROC (THEMESSAGE=
{MSG = 1086, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$40503a94)
at control.inc:1249
#23 $0830e548 in TWINCONTROL__WNDPROC (MESSAGE=
{MSG = 1086, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$40503a94)
at wincontrol.inc:1671
#24 $08305d80 in TCUSTOMFORM__WNDPROC (THEMESSAGE= {MSG = 1086, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$40503a94)
at customform.inc:799
#25 $082be87a in DELIVERMESSAGE (TARGET=$40503a94, AMESSAGE=void) at gtkproc.inc:2137
#26 $082c4710 in GTKDELETECB (WIDGET=$8607848, EVENT=$85cdfb0, DATA=$40503a94)
at gtkcallback.inc:999
#27 $401791c9 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0 #28 $401a8a9e in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
#29 $401a7f1c in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0 #30 $401a5ea8 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 #31 $401dba5a in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0 #32 $4017810f in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0 #33 $40221e20 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0 #34 $4029a03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #35 $4029a4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #36 $4029a6bd in g_main_iteration () from /usr/lib/libglib-1.2.so.0 #37 $40177f40 in gtk_main_iteration_do () from /usr/lib/libgtk-1.2.so.0 #38 $082db5f4 in TGTKOBJECT__WAITMESSAGE (this=$855dff4) at gtkobject.inc:1383
#39 $08308369 in TAPPLICATION__IDLE (this=$855dd24) at application.inc:306 #40 $08308f61 in TAPPLICATION__HANDLEMESSAGE (this=$855dd24) at application.inc:724
#41 $083091bf in RUNMESSAGE () at application.inc:830 #42 $0830922f in TAPPLICATION__RUN (this=$855dd24) at application.inc:842 #43 $08368056 in main () at lazarus.pp:83
(gdb)
Hope this helps.
Ken