[fpc-pascal] How do I test the testfppdf on Windows?

silvioprog silvioprog at gmail.com
Sat Mar 5 20:30:25 CET 2016


On Sat, Mar 5, 2016 at 3:56 PM, Michael Van Canneyt <michael at freepascal.org>
wrote:
>
> On Sat, 5 Mar 2016, silvioprog wrote:
>
>> Hello,
>>
>> I just created the folder "fonts" and copied the
>> "C:\Windows\Fonts\arial.ttf" into that, so I changed the line
>> "D.AddFont('FreeSans.ttf', 'FreeSans-12' to "D.AddFont('arial.ttf',
>> 'Arial", however, when I try to run the project, I get a SIGSEGV:
>>
>> #0
>>
>> WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT
>> at :0
>> #1 ?? at :0
>> #2 ?? at :0
>> #3 ?? at :0
>> #4
>>
>> WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT
>> at :0
>> #5 ?? at :0
>>
>> I also get some warnings and hints in the compilation:
>>
>
> Hm. This is strange, the code does not use interfaces at all.
> The compilation hints/warnings do not really present me with a hint as to
> what could be wrong.
>

Attached patch to fix warns/hints. (need to test it with FPC 2.6, I tested
only in 3.0)


> Any chance to get a better stack backtrace ?


Yes. I'm trying to get that, it seems more related to the TComponent class,
that uses interfaces.

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160305/6ababd27/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-warnings-and-hints.patch
Type: application/octet-stream
Size: 2778 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160305/6ababd27/attachment.obj>


More information about the fpc-pascal mailing list