Sign in Join

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

Mailing lists / lazarus / 2009-08

r21114 - "Invalid type cast" when opening dialog in IDE

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

I upgraded this morning to test something Vincent tried to fix. I now notice that you cannot open the "Project > Compiler Options" dialog anymore. It gives a "Invalid type cast" error.

Below is the backtrace.

=================================================
$ gdb ./lazarus
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) break fpc_raiseexception;
Junk at end of arguments.
(gdb) run
Starting program: /opt/git/lazarus_argon/lazarus
[Thread debugging using libthread_db enabled]
[New Thread 0xb741eb80 (LWP 8875)]
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/graemeg/.config/lazarus/" SecondaryConfigPath="/etc/lazarus"
TApplication.HandleException Invalid type cast
Stack trace:
$082BAC08 TGTK2WSCUSTOMMEMO__SETSELSTART, line 209 of gtk2wscustommemo.inc
$081EBA16 TCUSTOMEDIT__CREATEWND, line 38 of ./include/customedit.inc $081A8205 TWINCONTROL__CREATEHANDLE, line 6644 of ./include/wincontrol.inc
$081EB364 TCUSTOMMEMO__CREATEHANDLE, line 124 of ./include/custommemo.inc
$081A91FA TWINCONTROL__HANDLENEEDED, line 7048 of ./include/wincontrol.inc
$081A86F5 TWINCONTROL__CREATEWND, line 6743 of ./include/wincontrol.inc $081A8205 TWINCONTROL__CREATEHANDLE, line 6644 of ./include/wincontrol.inc
$081A91FA TWINCONTROL__HANDLENEEDED, line 7048 of ./include/wincontrol.inc
$081A86F5 TWINCONTROL__CREATEWND, line 6743 of ./include/wincontrol.inc $081A8205 TWINCONTROL__CREATEHANDLE, line 6644 of ./include/wincontrol.inc
$081A91FA TWINCONTROL__HANDLENEEDED, line 7048 of ./include/wincontrol.inc
$081A72E1 TWINCONTROL__GETHANDLE, line 5952 of ./include/wincontrol.inc $08282F45 TGTKWSCUSTOMNOTEBOOK__ADDPAGE, line 389 of /opt/git/lazarus_argon/lcl/interfaces/gtk/gtkwsextctrls.pp $0824F06E TCUSTOMNOTEBOOK__ADDREMOVEPAGEHANDLE, line 574 of ./include/customnotebook.inc
$0824E48C TCUSTOMNOTEBOOK__DOCREATEWND, line 260 of ./include/customnotebook.inc
$0824E3FF TCUSTOMNOTEBOOK__CREATEWND, line 236 of ./include/customnotebook.inc
$081A8205 TWINCONTROL__CREATEHANDLE, line 6644 of ./include/wincontrol.inc
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END

Program exited normally.

=================================================

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Graeme Geldenhuys
Graeme Geldenhuys wrote
I upgraded this morning to test something Vincent tried to fix. I now notice that you cannot open the "Project > Compiler Options" dialog anymore. It gives a "Invalid type cast" error.

It is gtk2 specific. Revision 21115 contains a temporary fix. Revision 21116 contains a proper fix, which seems to work ok.

Vincent

Reply by email