View Issue Details

IDProjectCategoryView StatusLast Update
0035380Lazarus CCRPackagespublic2019-05-14 23:26
ReporterpomaloAssigned ToDmitry Boyarintsev 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platformlinux i386_x64OSLinux MintOS Version19.1
Summary0035380: RichMemo crash with EInvaldCast exception
DescriptionRichMemo crash with EInvaldCast exception when closing a form or when form loose focus
Steps To ReproduceA single from with a richmemo on it without code
TagsNo tags attached.
WidgetsetGTK 2
Attached Files

Activities

pomalo

2019-04-14 21:07

reporter  

wp

2019-05-03 00:07

developer   ~0115967

The same error occurs in the demo program "paragraph/testpara".

At the faulty line, TCustomMemo(ACustomEdit).Lines is cast to TGtk2MemoStrings, but the Lines were created in TGtk2WSCustomRichMemo.GetStrings as TGtk2RichMemoStrings which direclty descends from TStrings, not from TGtk2MemoStrings.

wp

2019-05-14 23:26

developer   ~0116199

The patch in the forum post https://forum.lazarus.freepascal.org/index.php/topic,40379.msg321114.html#msg321114 fixes the issue at least for me.

Issue History

Date Modified Username Field Change
2019-04-14 21:07 pomalo New Issue
2019-04-14 21:07 pomalo File Added: Capture d’écran_2019-04-14_21-01-22.png
2019-05-03 00:07 wp Note Added: 0115967
2019-05-03 00:08 wp Assigned To => Dmitry Boyarintsev
2019-05-03 00:08 wp Status new => assigned
2019-05-14 23:26 wp Note Added: 0116199