On Sat, Mar 5, 2016 at 3:56 PM, Michael Van Canneyt <mich...@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
0001-Remove-warnings-and-hints.patch
Description: Binary data
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal