Mattias:<br>The problem is fixed :), but when running and close an example project1 i receive a "segmentation fault", here is a backtrace:<br><br>(gdb) run<br>Starting program: C:\tmp\test-menu-dbmodule/project1.exe<br>
<br>Program received signal SIGSEGV, Segmentation fault.<br>0x000000000040ba2d in TOBJECT__FREE (this=0x4bddbe) at objpas.inc:152<br>152 objpas.inc: No such file or directory.<br> in objpas.inc<br>Current language: auto; currently pascal<br>
(gdb) backtrace<br>#0 0x000000000040ba2d in TOBJECT__FREE (this=0x4bddbe) at objpas.inc:152<br>#1 0x000000000006fb80 in ?? ()<br>#2 0x0000000000434a59 in REMOVEFIXUPREFERENCES (ROOT=0x0,<br> ROOTNAME=0xabf50 '¦µ©´'#10) at resref.inc:187<br>
#3 0x00000000000abf50 in ?? ()<br>#4 0x0000000000000000 in ?? ()<br><br>Now the Lazarus menu editor don't work and when try to close the ide i receive a "segmentation fault" too, here is a backtrace of lazarus:<br>
<br>Program received signal SIGSEGV, Segmentation fault.<br>0x0000000000000000 in ?? ()<br>(gdb) backtrace<br>#0 0x0000000000000000 in ?? ()<br>#1 0x000000000040d6ba in TOBJECT__DISPATCH (MESSAGE=void, this=0x6f558)<br>
at objpas.inc:465<br>#2 0x0000000000bfd748 in $CONTROLS$_Ld400 ()<br>#3 0x000000000962dd20 in ?? ()<br>#4 0x0000000000120000 in ?? ()<br>#5 0x0000000000000000 in ?? ()<br>(gdb) continue<br>Continuing.<br><br>Breakpoint 1, fpc_raiseexception (OBJ=0xb4000000000, ANADDR=0xb41,<br>
AFRAME=0x40a0973) at except.inc:189<br>189 in except.inc<br>(gdb) backtrace<br>#0 fpc_raiseexception (OBJ=0xb4000000000, ANADDR=0xb41, AFRAME=0x40a0973)<br> at except.inc:189<br>#1 0x00000000004ad6cc in RUNERRORTOEXCEPT (ERRNO=216, ADDRESS=0x0,<br>
FRAME=0x6f1b0) at sysutils.inc:317<br>#2 0x000000000041080b in HANDLEERRORADDRFRAME (ERRNO=0, ADDR=0xd8, FRAME=0x0)<br> at system.inc:865<br>#3 0xfffff97ff7bd88b0 in ?? ()<br>#4 0xfffffa8003187980 in ?? ()<br>#5 0x0000000000000003 in ?? ()<br>
#6 0xfffff97fff075303 in ?? ()<br>#7 0x7fffffff7fffffff in ?? ()<br>#8 0x8000000080000000 in ?? ()<br>#9 0x0000000000000000 in ?? ()<br><br>Lazarus 0.9.25 2008-04-30 svn:15016 x86_64-win32/win64 daily snapshot (so: winXP64)<br>
<br>Thanks!!!<br><br><div class="gmail_quote">2008/4/29 Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 29 Apr 2008 17:45:37 -0300<br>
<div class="Ih2E3d">"Carlos German Tejero" <<a href="mailto:german_tejero@yahoo.com.ar">german_tejero@yahoo.com.ar</a>> wrote:<br>
<br>
</div><div class="Ih2E3d">> Program received signal SIGSEGV, Segmentation fault.<br>
> [Switching to thread 2984.0x24c]<br>
> 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT ()<br>
> (gdb) backtrace<br>
> #0 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT ()<br>
> #1 0x0000000000526c5d in TWINCONTROL__HANDLENEEDED (this=0x7ed5de0)<br>
> at wincontrol.inc:6850<br>
> #2 0x0000000000524845 in TWINCONTROL__GETHANDLE (this=0x7ed5de0)<br>
> at wincontrol.inc:5784<br>
> #3 0x00000000005cb3ad in TWIN32WIDGETSET__ATTACHMENUTOWINDOW (<br>
> AMENUOBJECT=0x7ed2e60, this=0x113700) at win32object.inc:492<br>
> #4 0x000000000041f31e in TCUSTOMFORM__SETMENU (VALUE=0x7ed2e60,<br>
> this=0x9296640) at customform.inc:1174<br>
<br>
</div>Thanks.<br>
<br>
The bug is in the win32 interface:<br>
TWin32WidgetSet.AttachMenuToWindow<br>
<br>
I changed it. Please test, if this fixes it.<br>
<div><div></div><div class="Wj3C7c"><br>
Mattias<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Carlos Germ¨˘n Tejero