* * *

Author Topic: [SOLVED] Is RichMemo incompatible with Lazarus 1.8 ???  (Read 1262 times)

gicla

  • New member
  • *
  • Posts: 6
[SOLVED] Is RichMemo incompatible with Lazarus 1.8 ???
« on: February 03, 2018, 01:53:36 pm »
Hi all,
I'm writing here after a lot of self test and internet research.
I just updated my Lazarus to 1.8, installed again RichMemo package and tried to run my project which was perfectly working before.
Now, when the code tries to use RichMemo.GetTextAttributes it hang with the error: Exception Class 'External: ?'
This is the piece of code where it stops:
Code: Pascal  [Select]
  1.  
  2. procedure TForm1.OnLinkAction(Sender: TObject; AAction: TLinkAction;
  3.       const AMouseInfo: TLinkMouseInfo; StartChar, LenChars: Integer);
  4. var
  5.   FP : TFontParams;
  6. begin
  7.   if AMouseInfo.button = mbLeft then
  8.     begin
  9.       RichMemo1.GetTextAttributes(StartChar, FP);  <-- THIS IS THE LINE WHERE IT STOPS
  10.       FP.BkColor := clYellow;
  11.       FP.HasBkClr := True;
  12.       RichMemo1.SetTextAttributes(StartChar, LenChars, FP);
  13.       RichMemo1.SelStart := 0;
  14.  
  15.       iChN := StrToInt(RichMemo1.GetText(StartChar + 4, LenChars - 4));
  16.       Form4.ShowModal;
  17.     end;
  18. end;      
  19.  

I tried to uninstall and reinstall Lazarus and also RichMemo but no way.
Shall I go back to previous Lazarus version or is there anything wrong in the code?

Thanks for any help!
« Last Edit: February 03, 2018, 05:53:05 pm by gicla »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1939
Re: Is RichMemo incompatible with Lazarus 1.8 ???
« Reply #1 on: February 03, 2018, 03:28:30 pm »
Win32? gtk2? Qt4?

gicla

  • New member
  • *
  • Posts: 6
Re: Is RichMemo incompatible with Lazarus 1.8 ???
« Reply #2 on: February 03, 2018, 05:52:36 pm »
Thanks skalogryz for your quick response and sorry if I didn't give more details on the version.
I just solved my problem by uninstalling Lazarus x64 an installing x86 version ( always 1.8 ).
It now works as before.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus