Hi,
One of our customers encountered an error when pasting text [Ctrl-V] into a TAdvRichEditor component. Looking at the callstack the error is related to the font's name. We cannot reproduce the error, since we don't have the text the user is attempting to paste.
Here's the error message that we received and part of the callstack:
exception class : EAccessViolation
exception message : Access violation at address 50067AF1 in module 'rtl230.bpl'. Read of address 0064008F.
main thread ($18b4):
50067af1 rtl230.bpl System UTF8ToUnicodeString
5096f107 vcl230.bpl Vcl Graphics.TFont.GetName
0d34a072 TMSVCLUIPackPkgExDXE9.bpl Advricheditorbase TAdvRichEditorBase.GetFontName
0d368e69 TMSVCLUIPackPkgExDXE9.bpl Advricheditor TAdvRichEditor.DrawCaret
0d36d2d1 TMSVCLUIPackPkgExDXE9.bpl Advricheditor TAdvRichEditor.Paint
0d30cbcc TMSVCLUIPackPkgExDXE9.bpl Advscrollcontrol TCustomScrollingControl.PaintWindow
50998235 vcl230.bpl Vcl Controls.TWinControl.PaintHandler
0d30d14c TMSVCLUIPackPkgExDXE9.bpl Advscrollcontrol TCustomScrollingControl.WMPaint
Is there any mitigation that we can do? We're using MadExcept for our exception handler. I was thinking of handling the exception and simply continue the execution, but I'm hesitant to do that since I don't know what the side effect might be. Is it possible that the font is embedded in the text that the user is copying from, but not installed in Windows?