<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Mar 5, 2016 at 3:56 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Sat, 5 Mar 2016, silvioprog wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I just created the folder "fonts" and copied the<br>
"C:\Windows\Fonts\arial.ttf" into that, so I changed the line<br>
"D.AddFont('FreeSans.ttf', 'FreeSans-12' to "D.AddFont('arial.ttf',<br>
'Arial", however, when I try to run the project, I get a SIGSEGV:<br>
<br>
#0<br>
WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT<br>
at :0<br>
#1 ?? at :0<br>
#2 ?? at :0<br>
#3 ?? at :0<br>
#4<br>
WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT<br>
at :0<br>
#5 ?? at :0<br>
<br>
I also get some warnings and hints in the compilation:<br>
</blockquote>
<br></span>
Hm. This is strange, the code does not use interfaces at all.<br>
The compilation hints/warnings do not really present me with a hint as to<br>
what could be wrong.<br></blockquote><div><br></div><div>Attached patch to fix warns/hints. (need to test it with FPC 2.6, I tested only in 3.0)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any chance to get a better stack backtrace ?</blockquote></div><div><br></div><div>Yes. I'm trying to get that, it seems more related to the TComponent class, that uses interfaces.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>