View Issue Details

IDProjectCategoryView StatusLast Update
0000149Lazaruspublic2004-01-28 15:42
ReporterBug ImportAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0000149: DataModule crashes IDE
DescriptionI have a project with a datamodule. When I open it, the datamodule has focus in the object inspector. If I click on the main form, and then attempt to drop a visual component onto the MAIN form, Lazarus attempts to link the component into the datamodule and crashes. Here's GDB output:

Starting program: /home/tony/lazarus/lazarus
NOTE: codetools config file not found - using defaults
TPkgManager.LoadInstalledPackage PackageName="tmpack"
TPkgManager.LoadInstalledPackage PackageName="wizardntb"
TPkgManager.LoadInstalledPackage PackageName="zlibpack"
TPkgManager.LoadInstalledPackage PackageName="cbtpack"
TMainIDE.DoNewProject A
TMainIDE.DoNewEditorFile A NewFilename=
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr
[TCustomFormEditor.CreateComponent] Class='TFORM'
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr
TMainIDE.DoNewEditorFile end unit1.pas
TMainIDE.DoNewProject end 0
TMainIDE.DoCloseEditorFile A PageIndex=0
TCustomFormEditor.DeleteControl TForm1 TRUE
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr
TMainIDE.DoCloseEditorFile end
TPascalParserTool.BuildTree B OnlyIntf=TRUE /home/tony/Projects/cbt2/mainfrm.pas
TMainIDE.DoLoadLFM AncestorClassName=TForm AncestorType=TFORM
TPascalParserTool.BuildTree B OnlyIntf=TRUE /home/tony/Projects/cbt2/cbtpack/cbtobjects.pas
TPascalParserTool.BuildTree B OnlyIntf=TRUE /home/tony/lazarus/lcl/stdctrls.pp
TPascalParserTool.BuildTree B OnlyIntf=TRUE /home/tony/Projects/cbt2/cbtpack/checkbook.pas
TPascalParserTool.BuildTree B OnlyIntf=TRUE /home/tony/Projects/cbt2/udatamod.pas
TMainIDE.DoLoadLFM AncestorClassName=TDataModule AncestorType=TDATAMODULE
TPascalParserTool.BuildTree B OnlyIntf=TRUE /home/tony/Projects/cbt2/cbtpack/checkbookschedule.pas
************************************************************
MouseDownOnControl Panel2:TPANEL No Shift down, No CTRL down
[TDesigner.MouseDownOnControl] END
************************************************************
MouseDownOnControl PanTop:TPANEL No Shift down, No CTRL down
[TDesigner.MouseDownOnControl] END
************************************************************
MouseDownOnControl PanTop:TPANEL No Shift down, No CTRL down
[TDesigner.MouseDownOnControl] END
************************************************************
MouseDownOnControl Checkbook1:TCHECKBOOK No Shift down, No CTRL down
[TDesigner.MouseDownOnControl] END
************************************************************
MouseDownOnControl :TDATAMODULEFORM No Shift down, No CTRL down
[TDesigner.MouseDownOnControl] END
************************************************************
MouseUpOnControl :TDATAMODULEFORM
AddComponent A FALSE

Program received signal SIGSEGV, Segmentation fault.
$082d0542 in TMAINIDE__ONPROPHOOKBEFOREADDCOMPONENT (SENDER=$4091da94,
    ACOMPONENTCLASS=$843281c, APARENT=$40681b74, this=$40593e24)
    at main.pp:9734
9734 'A '+Parent.ClassName+' can not hold TControls.'0000013
(gdb)
#0 $082d0542 in TMAINIDE__ONPROPHOOKBEFOREADDCOMPONENT (SENDER=$4091da94,
    ACOMPONENTCLASS=$843281c, APARENT=$40681b74, this=$40593e24)
    at main.pp:9734
0000001 $0817d242 in TPROPERTYEDITORHOOK__BEFOREADDCOMPONENT (SENDER=$4091da94,
    ACOMPONENTCLASS=$843281c, PARENT=$40681b74, this=$40705f44)
    at propedits.pp:4472
0000002 $08126949 in ADDCOMPONENT () at designer.pp:1177
0000003 $08127255 in TDESIGNER__MOUSEUPONCONTROL (SENDER=$4091f1e4, THEMESSAGE=
      {MSG = 514, KEYS = 1, XPOS = 122, YPOS = 140, POS = {X = 122, Y = 140}, RESULT = 0}, this=$4091da94) at designer.pp:1340
0000004 $08127d2c in TDESIGNER__ISDESIGNMSG (SENDER=$4091f1e4, THEMESSAGE=
      {MSG = 514, WPARAM = 1, LPARAM = 9175162, RESULT = 0, WPARAMLO = 1, WPARAMHI = 0, LPARAMLO = 122, LPARAMHI = 140, RESULTLO = 0, RESULTHI = 0},
    this=$4091da94) at designer.pp:1660
0000005 $0831e5c1 in TCONTROL__WNDPROC (THEMESSAGE=
      {MSG = 514, WPARAM = 1, LPARAM = 9175162, RESULT = 0, WPARAMLO = 1, WPARAMHI = 0, LPARAMLO = 122, LPARAMHI = 140, RESULTLO = 0, RESULTHI = 0},
    this=$4091f1e4) at control.inc:1158
0000006 $0831a488 in TWINCONTROL__WNDPROC (MESSAGE=
      {MSG = 514, WPARAM = 1, LPARAM = 9175162, RESULT = 0, WPARAMLO = 1, WPARAMHI = 0, LPARAMLO = 122, LPARAMHI = 140, RESULTLO = 0, RESULTHI = 0},
    this=$4091f1e4) at wincontrol.inc:1671
0000007 $0830ddd0 in TCUSTOMFORM__WNDPROC (THEMESSAGE=
      {MSG = 514, WPARAM = 1, LPARAM = 9175162, RESULT = 0, WPARAMLO = 1, WPARAMHI = 0, LPARAMLO = 122, LPARAMHI = 140, RESULTLO = 0, RESULTHI = 0},
    this=$4091f1e4) at customform.inc:799
0000008 $082ee50a in DELIVERMESSAGE (TARGET=$4091f1e4, AMESSAGE=void)
    at gtkproc.inc:2137
0000009 $082f4edc in DELIVERMOUSEUPMESSAGE (WIDGET=$871e018, EVENT=$8637808,
    AWINCONTROL=$4091f1e4) at gtkcallback.inc:1575
0000010 $082f4f63 in GTKMOUSEBTNRELEASE (WIDGET=$871e018, EVENT=$8637808,
    DATA=$4091f1e4) at gtkcallback.inc:1625
0000011 $401b7618 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
(gdb)
Additional InformationImported information
--------------------
Name: Tony Maro
Mail: tony (at) maro.net
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK, Win32/Win64
Attached Files

Activities

Bug Import

2004-01-28 15:42

reporter   ~0000129

MG

Issue History

Date Modified Username Field Change
2003-11-12 00:00 Bug Import New Issue
2003-11-12 00:00 Bug Import Widgetset => GTK, Win32
2004-01-28 15:42 Bug Import Note Added: 0000129
2004-01-28 15:42 Bug Import Status new => closed
2004-01-28 15:42 Bug Import Resolution open => fixed