On Saturday 20 May 2006 23:30, Flávio Etrusco wrote: > I can't see anything wrong either... Guess we'll need a callstack... > Out of curiosity, if you comment out the body of the SetHtmlStrings > method is the AV still raised?
This test sounded like worth trying, so I did - same result. So I undid it and slapped together a little test program, threw a TSimpleHTML, a TMEMO and a button on a form, and set the button's onclick to: SimpleHTML1.HTMLStrings.Assign(Memo1.Lines) And ran it through gdb. Here follows the backtrace: (gdb) run Starting program: /tmp/project1 Program received signal SIGSEGV, Segmentation fault. 0x08077208 in TFORM1__BUTTON1CLICK (SENDER=0xb7b32f88, this=0xb7b317f8) at unit1.pas:35 35 SimpleHTML1.HTMLSTrings.Assign(Memo1.Lines); Current language: auto; currently pascal (gdb) backtrace #0 0x08077208 in TFORM1__BUTTON1CLICK (SENDER=0xb7b32f88, this=0xb7b317f8) at unit1.pas:35 #1 0x0810bc06 in TCONTROL__CLICK (this=0xb7b32f88) at control.inc:1857 #2 0x0816005d in TBUTTONCONTROL__CLICK (this=0xb7b32f88) at buttoncontrol.inc:57 #3 0x081619f1 in TCUSTOMBUTTON__CLICK (this=0xb7b32f88) at buttons.inc:187 #4 0x08161d9d in TBUTTON__CLICK (this=0xb7b32f88) at buttons.inc:293 #5 0x08161bb8 in TCUSTOMBUTTON__WMDEFAULTCLICKED (MESSAGE= {MSG = 1031, WPARAM = -1075971580, LPARAM = 138006360, RESULT = -1075972444, WPARAMLO = 64004, WPARAMHI = 49117, LPARAMLO = 53080, LPARAMHI = 2105, RESULTLO = 63140, RESULTHI = 49117}, this=0xb7b32f88) at buttons.inc:242 #6 0x0805ce47 in SYSTEM_TOBJECT_$__DISPATCH$formal () #7 0x0810b50e in TCONTROL__WNDPROC (THEMESSAGE= {MSG = 1031, WPARAM = -1075971580, LPARAM = 138006360, RESULT = -1075972444, WPARAMLO = 64004, WPARAMHI = 49117, LPARAMLO = 53080, LPARAMHI = 2105, RESULTLO = 63140, RESULTHI = 49117}, this=0xb7b32f88) at control.inc:1534 #8 0x08102ee9 in TWINCONTROL__WNDPROC (MESSAGE= {MSG = 1031, WPARAM = -1075971580, LPARAM = 138006360, RESULT = -1075972444, WPARAMLO = 64004, WPARAMHI = 49117, LPARAMLO = 53080, LPARAMHI = 2105, RESULTLO = 63140, RESULTHI = 49117}, this=0xb7b32f88) at wincontrol.inc:3378 #9 0x0811fd65 in DELIVERMESSAGE (TARGET=0xb7b32f88, AMESSAGE=void) at gtkproc.inc:3469 #10 0x081bb7ec in GTKWSBUTTON_CLICKED (AWIDGET=0x83aada0, AINFO=0xb7b686f4) at gtkwsbuttons.pp:117 #11 0xb7dfc877 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0 #12 0xb7e2be5a in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0 #13 0xb7e2b16a in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0 #14 0xb7e29234 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 #15 0xb7d9be1c in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0 #16 0xb7d9d38a in gtk_button_get_relief () from /usr/lib/libgtk-1.2.so.0 #17 0xb7dfc877 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0 #18 0xb7e2b07b in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0 #19 0xb7e29234 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 #20 0xb7d9bd60 in gtk_button_released () from /usr/lib/libgtk-1.2.so.0 #21 0xb7d9cd26 in gtk_button_get_relief () from /usr/lib/libgtk-1.2.so.0 #22 0xb7dfc64d in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0 #23 0xb7e2b19f in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0 #24 0xb7e29234 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 #25 0xb7e5efd9 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0 #26 0xb7dfc4d0 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0 #27 0xb7dfb5c1 in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0 #28 0xb7f70b44 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0 #29 0xb7f9ae75 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #30 0xb7f9b32c in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #31 0xb7f9b4f5 in g_main_iteration () from /usr/lib/libglib-1.2.so.0 #32 0xb7dfb388 in gtk_main_iteration_do () from /usr/lib/libgtk-1.2.so.0 #33 0x080cd0e6 in TGTKWIDGETSET__APPWAITMESSAGE (this=0xb7b70014) at gtkobject.inc:1798 #34 0x0807330f in TAPPLICATION__IDLE (WAIT=true, this=0xb7b90014) at application.inc:282 #35 0x0807481d in TAPPLICATION__HANDLEMESSAGE (this=0xb7b90014) at application.inc:920 ---Type <return> to continue, or q <return> to quit--- #36 0x08074c10 in RUNMESSAGE (parentfp=0xbfde03a0) at application.inc:1034 #37 0x08074b5b in TAPPLICATION__RUNLOOP (this=0xb7b90014) at application.inc:1044 #38 0x0807741f in TWIDGETSET__APPRUN (ALOOP=0x8074b1c <TAPPLICATION__RUNLOOP>, this=0xb7b70014) at interfacebase.inc:42 #39 0x08074b08 in TAPPLICATION__RUN (this=0xb7b90014) at application.inc:1023 #40 0x08053653 in main () at project1.lpr:16 I cannot see anything usefull there, but maybe somebody else can. A.J. -- "there's nothing as inspirational for a hacker as a cat obscuring a bug by sitting in front of the monitor" - Boudewijn Rempt A.J. Venter Chief Software Architect OpenLab International www.getopenlab.com www.silentcoder.co.za +27 82 726 5103 _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives