Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

Need Testers

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

shoKwave
to Mattias Gaertner
Show quoted text 17 lines
Hi all, I implemented the biggest part of the multi form properties. For example using datamodules on forms. To enable it compile the IDE clean with -dEnableMultiFormProperties. See here for more details: http://wiki.lazarus.freepascal.org/IDE_Development#Multi_form_properties_.2F_using_DataModules_from_other_forms_in_the_designer Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi Mattias,

I've just downloaded, installed and rebuilded todays snapshot for Windows with fpc 2.2.0. Then made a new project with 2 Forms: Form1 has a TDbf and a Datasource. On Form2 if got a DBNavigator and a DBGrid. I've selected the DS in the OI and it works.

I will test it on a bigger Project but it looks fine for me (on WinXP Home SP2).

Great work! Thanks.

Ingo

Carlos German Tejero
to Mattias Gaertner: I implemented the biggest part of the multi form properties. For example using…

I test with Lazarus v0.9.25 r15001 x86_64-win64-win32/win64 (so: WinXP 64). With database connections, queries and so works fine :) TActionList works fine too :)

Great job!!!

With TMainMenu in a datamodule, and then link to a form i recieve an "access violation error" :(

2008/4/29, Mattias Gaertner :

Show quoted text 18 lines
Hi all, I implemented the biggest part of the multi form properties. For example using datamodules on forms. To enable it compile the IDE clean with -dEnableMultiFormProperties. See here for more details: http://wiki.lazarus.freepascal.org/IDE_Development#Multi_form_properties_.2F_using_DataModules_from_other_forms_in_the_designer Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080429/bcce14e9/attachment.html
Mattias Gaertner
to Carlos German Tejero
Show quoted text 8 lines
I test with Lazarus v0.9.25 r15001 x86_64-win64-win32/win64 (so: WinXP 64). With database connections, queries and so works fine :) TActionList works fine too :) Great job!!! With TMainMenu in a datamodule, and then link to a form i recieve an "access violation error" :(

This works here. Although the menu editor must be improved to support multiple forms/datamodules.
Can you create a backtrace?

Mattias

Carlos German Tejero
to Mattias Gaertner

Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2984.0x24c]
0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT ()
(gdb) backtrace
#0 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT () #1 0x0000000000526c5d in TWINCONTROL__HANDLENEEDED (this=0x7ed5de0) at wincontrol.inc:6850
#2 0x0000000000524845 in TWINCONTROL__GETHANDLE (this=0x7ed5de0) at wincontrol.inc:5784
#3 0x00000000005cb3ad in TWIN32WIDGETSET__ATTACHMENUTOWINDOW ( AMENUOBJECT=0x7ed2e60, this=0x113700) at win32object.inc:492 #4 0x000000000041f31e in TCUSTOMFORM__SETMENU (VALUE=0x7ed2e60, this=0x9296640) at customform.inc:1174
#5 0x00000000004bac31 in SETORDPROP (INSTANCE=0xbfab48, PROPINFO=0x9296640, VALUE=11986980) at typinfo.pp:925
#6 0x000000000006dd40 in ?? ()
#7 0x00000000006ae71d in TPROPERTYEDITOR__GETOBJECTVALUEAT (INDEX=132984416,
this=0x7ddfed0) at propedits.pp:2206
#8 0x00000000006b6c37 in TPERSISTENTPROPERTYEDITOR__SETVALUE ( NEWVALUE=0x7f02610 'DataModule1.MainMenu1', this=0x7ddfed0) at propedits.pp:4114
#9 0x000000000066e1c7 in TOICUSTOMPROPERTYGRID__SETROWVALUE (this=0x7de4ab0)
at objectinspector.pp:1181
#10 0x0000000000675aa9 in TOICUSTOMPROPERTYGRID__VALUECOMBOBOXCLOSEUP ( SENDER=0x7e0c950, this=0x7de4ab0) at objectinspector.pp:2532 #11 0x000000000053917d in TCUSTOMCOMBOBOX__CLOSEUP (this=0x7e0c950) at customcombobox.inc:234
#12 0x000000000053b6e6 in TCUSTOMCOMBOBOX__CNCOMMAND (THEMESSAGE= {MSG = 48401, UNUSEDMSG = 0, ITEMID = 51536, NOTIFYCODE = 8, UNUSED = 0, C
TL = 787064, RESULT = 0}, this=0x7e0c950) at customcombobox.inc:978 #13 0x000000000040d67d in TOBJECT__DISPATCH (MESSAGE=Cannot access memory at add
ress 0x0
) at objpas.inc:459
#14 0x000000000006e2e0 in ?? ()
#15 0x000000000040bfc1 in UTF8ENCODE (S=0x6e598) at wustrings.inc:1812 #16 0x000000000052227e in TWINCONTROL__WNDPROC (MESSAGE= {MSG = 48401, WPARAM = 575824, LPARAM = 787064, RESULT = 0, WPARAMLO = 575
824, WPARAMHI = 0, LPARAMLO = 787064, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0},
this=0x7e0c950) at wincontrol.inc:4715
#17 0x000000000052b3e0 in TCONTROL__PERFORM (MSG=48401, WPARAM=575824, LPARAM=787064, this=0x7e0c950) at control.inc:984
#18 0x00000000005c4baa in WINDOWPROC (WINDOW=590464, MSG=273, WPARAM=575824, LPARAM=787064) at win32callback.inc:1354
#19 0x0000000077c439fc in ?? ()
#20 0x0000000000000001 in ?? ()
#21 0x0000000000000000 in ?? ()

2008/4/29 Mattias Gaertner :

Show quoted text 22 lines
On Tue, 29 Apr 2008 13:31:42 -0300 "Carlos German Tejero" wrote: > I test with Lazarus v0.9.25 r15001 x86_64-win64-win32/win64 (so: > WinXP 64). With database connections, queries and so works fine :) > TActionList works fine too :) > > Great job!!! > > With TMainMenu in a datamodule, and then link to a form i recieve an > "access violation error" :( This works here. Although the menu editor must be improved to support multiple forms/datamodules. Can you create a backtrace? Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080429/ac746d89/attachment.html
Mattias Gaertner
to Carlos German Tejero
Show quoted text 13 lines
Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2984.0x24c] 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT () (gdb) backtrace #0 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT () #1 0x0000000000526c5d in TWINCONTROL__HANDLENEEDED (this=0x7ed5de0) at wincontrol.inc:6850 #2 0x0000000000524845 in TWINCONTROL__GETHANDLE (this=0x7ed5de0) at wincontrol.inc:5784 #3 0x00000000005cb3ad in TWIN32WIDGETSET__ATTACHMENUTOWINDOW ( AMENUOBJECT=0x7ed2e60, this=0x113700) at win32object.inc:492 #4 0x000000000041f31e in TCUSTOMFORM__SETMENU (VALUE=0x7ed2e60, this=0x9296640) at customform.inc:1174

Thanks.

The bug is in the win32 interface:
TWin32WidgetSet.AttachMenuToWindow

I changed it. Please test, if this fixes it.

Mattias

Carlos German Tejero
to Mattias Gaertner

Mattias:
The problem is fixed :), but when running and close an example project1 i receive a "segmentation fault", here is a backtrace:

(gdb) run
Starting program: C:\tmp\test-menu-dbmodule/project1.exe

Program received signal SIGSEGV, Segmentation fault. 0x000000000040ba2d in TOBJECT__FREE (this=0x4bddbe) at objpas.inc:152 152 objpas.inc: No such file or directory.
in objpas.inc
Current language: auto; currently pascal
(gdb) backtrace
#0 0x000000000040ba2d in TOBJECT__FREE (this=0x4bddbe) at objpas.inc:152 #1 0x000000000006fb80 in ?? ()
#2 0x0000000000434a59 in REMOVEFIXUPREFERENCES (ROOT=0x0, ROOTNAME=0xabf50 '??'#10) at resref.inc:187
#3 0x00000000000abf50 in ?? ()
#4 0x0000000000000000 in ?? ()

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:

Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? ()
(gdb) backtrace
#0 0x0000000000000000 in ?? ()
#1 0x000000000040d6ba in TOBJECT__DISPATCH (MESSAGE=void, this=0x6f558) at objpas.inc:465
#2 0x0000000000bfd748 in $CONTROLS$_Ld400 ()
#3 0x000000000962dd20 in ?? ()
#4 0x0000000000120000 in ?? ()
#5 0x0000000000000000 in ?? ()
(gdb) continue
Continuing.

Breakpoint 1, fpc_raiseexception (OBJ=0xb4000000000, ANADDR=0xb41, AFRAME=0x40a0973) at except.inc:189
189 in except.inc
(gdb) backtrace
#0 fpc_raiseexception (OBJ=0xb4000000000, ANADDR=0xb41, AFRAME=0x40a0973) at except.inc:189
#1 0x00000000004ad6cc in RUNERRORTOEXCEPT (ERRNO=216, ADDRESS=0x0, FRAME=0x6f1b0) at sysutils.inc:317
#2 0x000000000041080b in HANDLEERRORADDRFRAME (ERRNO=0, ADDR=0xd8, FRAME=0x0)
at system.inc:865
#3 0xfffff97ff7bd88b0 in ?? ()
#4 0xfffffa8003187980 in ?? ()
#5 0x0000000000000003 in ?? ()
#6 0xfffff97fff075303 in ?? ()
#7 0x7fffffff7fffffff in ?? ()
#8 0x8000000080000000 in ?? ()
#9 0x0000000000000000 in ?? ()

Lazarus 0.9.25 2008-04-30 svn:15016 x86_64-win32/win64 daily snapshot (so: winXP64)

Thanks!!!

2008/4/29 Mattias Gaertner :

Show quoted text 30 lines
On Tue, 29 Apr 2008 17:45:37 -0300 "Carlos German Tejero" wrote: > Program received signal SIGSEGV, Segmentation fault. > [Switching to thread 2984.0x24c] > 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT () > (gdb) backtrace > #0 0x0000000000bcc8a8 in RTTI_CLASSES_TCOMPONENT () > #1 0x0000000000526c5d in TWINCONTROL__HANDLENEEDED (this=0x7ed5de0) > at wincontrol.inc:6850 > #2 0x0000000000524845 in TWINCONTROL__GETHANDLE (this=0x7ed5de0) > at wincontrol.inc:5784 > #3 0x00000000005cb3ad in TWIN32WIDGETSET__ATTACHMENUTOWINDOW ( > AMENUOBJECT=0x7ed2e60, this=0x113700) at win32object.inc:492 > #4 0x000000000041f31e in TCUSTOMFORM__SETMENU (VALUE=0x7ed2e60, > this=0x9296640) at customform.inc:1174 Thanks. The bug is in the win32 interface: TWin32WidgetSet.AttachMenuToWindow I changed it. Please test, if this fixes it. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Carlos Germ?n Tejero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080430/88e9f322/attachment.html
Vincent Snijders
to Carlos German Tejero
Carlos German Tejero wrote 58 lines
Mattias: The problem is fixed :), but when running and close an example project1 i receive a "segmentation fault", here is a backtrace: (gdb) run Starting program: C:\tmp\test-menu-dbmodule/project1.exe Program received signal SIGSEGV, Segmentation fault. 0x000000000040ba2d in TOBJECT__FREE (this=0x4bddbe) at objpas.inc:152 152 objpas.inc: No such file or directory. in objpas.inc Current language: auto; currently pascal (gdb) backtrace #0 0x000000000040ba2d in TOBJECT__FREE (this=0x4bddbe) at objpas.inc:152 #1 0x000000000006fb80 in ?? () #2 0x0000000000434a59 in REMOVEFIXUPREFERENCES (ROOT=0x0, ROOTNAME=0xabf50 '??'#10) at resref.inc:187 #3 0x00000000000abf50 in ?? () #4 0x0000000000000000 in ?? () 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: Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) backtrace #0 0x0000000000000000 in ?? () #1 0x000000000040d6ba in TOBJECT__DISPATCH (MESSAGE=void, this=0x6f558) at objpas.inc:465 #2 0x0000000000bfd748 in $CONTROLS$_Ld400 () #3 0x000000000962dd20 in ?? () #4 0x0000000000120000 in ?? () #5 0x0000000000000000 in ?? () (gdb) continue Continuing. Breakpoint 1, fpc_raiseexception (OBJ=0xb4000000000, ANADDR=0xb41, AFRAME=0x40a0973) at except.inc:189 189 in except.inc (gdb) backtrace #0 fpc_raiseexception (OBJ=0xb4000000000, ANADDR=0xb41, AFRAME=0x40a0973) at except.inc:189 #1 0x00000000004ad6cc in RUNERRORTOEXCEPT (ERRNO=216, ADDRESS=0x0, FRAME=0x6f1b0) at sysutils.inc:317 #2 0x000000000041080b in HANDLEERRORADDRFRAME (ERRNO=0, ADDR=0xd8, FRAME=0x0) at system.inc:865 #3 0xfffff97ff7bd88b0 in ?? () #4 0xfffffa8003187980 in ?? () #5 0x0000000000000003 in ?? () #6 0xfffff97fff075303 in ?? () #7 0x7fffffff7fffffff in ?? () #8 0x8000000080000000 in ?? () #9 0x0000000000000000 in ?? () Lazarus 0.9.25 2008-04-30 svn:15016 x86_64-win32/win64 daily snapshot (so: winXP64)

Can you create a bug report with a test program for this segmentation fault?

Vincent