1) Since I installed the RichMemo-package, every time when I start Lazarus, an error dialog is shown "Invalid type cast" (see attached screenshot1) and I can press "Abort" (which exits Lazarus) or "OK" (which starts Lazarus). No more information is shown to explain what is wrong. The "current project" is demo "testsimple" of the RichMemo-package. If I switch the current project to another RichMemo-demo (e.g. "customrtfload") I always get the same error-dialog. If I switch the current project to one of my own projects, this dialog does not come.
2) In many cases (but not always), when I start Lazarus, first another error dialog is shown "An error occured at last startup while loading <path_to_lpi_file>. Load this project again?" (see attached screenshot2). When I click on "Open project again" => the dialog "Invalid type cast" appears.
To get more infos, I started "startlazarus" directly from a terminal:
hg6@i3300:/opt/lazarus_206/lazarus$ ./startlazarus
using config file /opt/lazarus_206/lazarus/lazarus.cfg
Adding "--primary-config-path=/opt/lazarus_206/config_lazarus" as a parameter
is a file
SetPrimaryConfigPath NewValue="/opt/lazarus_206/config_lazarus" -> "/opt/lazarus_206/config_lazarus"
TLazarusManager.Run starting /opt/lazarus_206/lazarus/lazarus ...
using config file /opt/lazarus_206/lazarus/lazarus.cfg
SetPrimaryConfigPath NewValue="/opt/lazarus_206/config_lazarus" -> "/opt/lazarus_206/config_lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/opt/lazarus_206/config_lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 Changed: OS/CPU=True LCL=False
Hint: (lazarus) AskIfLoadLastFailingProject START
Hint: (lazarus) AskIfLoadLastFailingProject END True
TApplication.HandleException: EInvalidCast
Invalid type cast
Stack trace:
$000000000129714D line 786 of gtk2/gtk2richmemo.pas
$000000000059CBE3 line 7537 of include/wincontrol.inc
$0000000001291F70 line 650 of richmemo.pas
$000000000059C330 line 7447 of include/wincontrol.inc
$000000000059DAE8 line 7900 of include/wincontrol.inc
$000000000059CEB6 line 7582 of include/wincontrol.inc
$0000000000477A14 line 23 of include/scrollingwincontrol.inc
$0000000000480FAD line 2703 of include/customform.inc
$00000000004825D8 line 3171 of include/customform.inc
$000000000059C330 line 7447 of include/wincontrol.inc
$000000000059DAE8 line 7900 of include/wincontrol.inc
$0000000000593E37 line 3478 of include/wincontrol.inc
$0000000000593A47 line 3529 of include/wincontrol.inc
$00000000005AF2E0 line 5756 of include/control.inc
$0000000000C5CFBA line 6037 of sourcefilemanager.pas
$0000000000C5C250 line 5820 of sourcefilemanager.pas
$0000000000C52386 line 3790 of sourcefilemanager.pas
This is very annoying. I know that RichMemo-bugs can be added to the "Lazarus CCR" bug tracker, but there I saw, that there are many open RichMemo-bugs, many of them up to 1 year old, all assigned to Dmitry Boyarintsev, but no activities to see.
So my hope is, that maybe here I can find someone, who is enough familiar with that stuff and can help me earlier. I'm a bloody beginner to packages and a beginner to GUI-programming and the LCL.
RichMemo "r7273"
Linux Ubuntu 18.04 (64 bit)
Lazarus 2.0.6
FPC 3.0.4
Because this was my very first package I ever installed (maybe I did something wrong), here is what I did:
- downloaded "lazarus-ccr-svn-r7273-components-richmemo.zip" from
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/ - unpacked it into an arbitrary folder
- started Lazarus / menu Package / Open Package File (.lpk) / select richmemopackage.lpk from the above folder / Open / Button "Use" / Install / "Yes" in the confirmation dialog
- after that Lazarus was rebuild and restarted and "TRichMemo" was added to the "Common Controls" components
If you need more infos or tests, please let me know. Thanks a lot in advance.