Hello folks, I get this error ------------------------------------------------------------------------------------------------- ERROR in LCL: TWinControl.CreateWnd: no parent :Tn7XMLDoc Creating gdb catchable error:
Program received signal SIGFPE, Arithmetic exception. [Switching to Thread 16384 (LWP 2547)] 0x080b43e0 in RAISEGDBEXCEPTION (MSG=0x4113161c) at lclproc.pas:728 728 lclproc.pas: No such file or directory. in lclproc.pas Current language: auto; currently pascal (gdb) (gdb) backtrace #0 0x080b43e0 in RAISEGDBEXCEPTION (MSG=0x4113161c) at lclproc.pas:728 #1 0x080eecb9 in TWINCONTROL__CREATEWND (this=0x409b9368) at wincontrol.inc:5050 #2 0x080ee9c3 in TWINCONTROL__CREATEHANDLE (this=0x409b9368) at wincontrol.inc:4992 #3 0x080ef668 in TWINCONTROL__HANDLENEEDED (this=0x409b9368) at wincontrol.inc:5301 #4 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409ba0c8) at wincontrol.inc:5293 #5 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409bb6b8) at wincontrol.inc:5293 #6 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409bb9f8) at wincontrol.inc:5293 #7 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409bbd78) at wincontrol.inc:5293 #8 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409bc478) at wincontrol.inc:5293 #9 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409bcb08) at wincontrol.inc:5293 #10 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409c97b8) at wincontrol.inc:5293 #11 0x080ef648 in TWINCONTROL__HANDLENEEDED (this=0x409c9b58) at wincontrol.inc:5293 #12 0x080edc7b in TWINCONTROL__GETHANDLE (this=0x409c9b58) at wincontrol.inc:4342 #13 0x080f08c9 in TWINCONTROL__GETDEVICECONTEXT (WINDOWHANDLE=139406600, this=0x409c9b58) at wincontrol.inc:5763 #14 0x080e5570 in TCONTROLCANVAS__CREATEHANDLE (this=0x40c500b4) at controlcanvas.inc:90 #15 0x0810ffe4 in TCANVAS__REQUIREDSTATE (REQSTATE=[CSHANDLEVALID..CSFONTVALID], this=0x40c500b4) at canvas.inc:1417 #16 0x0811012e in TCANVAS__TEXTEXTENT (TEXT=0x40ea2ffc, this=0x40c500b4, result={CX = 0, CY = 0}) at canvas.inc:1455 #17 0x08110181 in TCANVAS__TEXTWIDTH (TEXT=0x40ea2ffc, this=0x40c500b4) at canvas.inc:1468 #18 0x08214cda in TN7XMLLIST__N7_XML_2_DS_XML (ANODE=0x40d6bad4, this=0x409c97b8) at n7xmllist.pas:367 ----------------------------------------------------------------------------------------------- This happens when trying to use TDBGrid.Canvas.TextWidth, when the grid is not visible. The object of class Tn7XMLDoc is created before that with Parent TPanel. Should I investigate this further? Is it really a LCL bug or my fault? _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives