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

2016-03-14 Thread silvioprog
On Fri, Mar 11, 2016 at 4:35 AM, Michael Van Canneyt  wrote:
>
> On Thu, 10 Mar 2016, silvioprog wrote:
>
> On Sat, Mar 5, 2016 at 3:38 PM, silvioprog  wrote:
>> [...]
>>
>> ... however, when I try to run the project, I get a SIGSEGV:
>>>
>>>
>> This patch (by Gilson Nunes) fix the SIGSEGV:
>> http://bugs.freepascal.org/view.php?id=29812.
>>
>
> Improved and applied, thank you.
>
>
>> However, the example still making empty pages on Windows. (I'll ask Gilson
>> to help us to fix this problem ...)
>>
>
> Did you try the patch by Jesus Reyes ?


Not yet, because I get a new error:

An unhandled exception occurred at $0041EECF:
EListError: List index (0) out of bounds
  $0041EECF
  $00432EAA  TPDFDOCUMENT__INDEXOFGLOBALXREF,  line 2746 of
C:/dev/git/freepascal/packages/fcl-pdf/src/fppdf.pp
  $00432F15  TPDFDOCUMENT__FINDGLOBALXREF,  line 2759 of
C:/dev/git/freepascal/packages/fcl-pdf/src/fppdf.pp
  $004348A5  TPDFDOCUMENT__GLOBALXREFBYNAME,  line 3212 of
C:/dev/git/freepascal/packages/fcl-pdf/src/fppdf.pp
  $0043341A  TPDFDOCUMENT__CREATEPREFERENCESENTRY,  line 2858 of
C:/dev/git/freepascal/packages/fcl-pdf/src/fppdf.pp
  $00434B42  TPDFDOCUMENT__STARTDOCUMENT,  line 3242 of
C:/dev/git/freepascal/packages/fcl-pdf/src/fppdf.pp
  $0040177F  SETUPDOCUMENT,  line 22 of testfppdf.lpr
  $00402BF4  main,  line 427 of testfppdf.lpr

-- 
Silvio Clécio
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-14 Thread Sven Barth
Am 14.03.2016 16:16 schrieb "fredvs" :
>
> Hello.
>
> I have problem to access methods from a C library.
>
> For FreeBSD, the methods cannot be accessed (but ok for Linux and
Windows).
>
> In FreeBSD, LoadLibrary(aac.so) is working but all GetProcAdress() for
each
> method fail.
>
> I already ask help in FreeBSD forum :
> https://forums.freebsd.org/threads/55305/
>
> But without luck.
>
> Could it be that something is wrong with mangle-name of exported methods
of
> the library in FreeBSD ?

You could check with objdump or nm what the exported symbols look like in
the library. There are some systems that export C functions with a leading
'_' for example.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-14 Thread fredvs
Hello.

I have problem to access methods from a C library.

For FreeBSD, the methods cannot be accessed (but ok for Linux and Windows).

In FreeBSD, LoadLibrary(aac.so) is working but all GetProcAdress() for each
method fail.

I already ask help in FreeBSD forum : 
https://forums.freebsd.org/threads/55305/

But without luck.

Could it be that something is wrong with mangle-name of exported methods of
the library in FreeBSD ?

Does anybody have a idea why GetProcAdress() fail in FreeBSD (but ok for
Linux and Windows) ?

Or must the library-code be compiled with some special instructions for fpc
?

Every comment or light is highly welcome (tips, must-know, etc,...).

PS: A solution is highly expected because there are other libraries, with
same problems in FreeBSD, that wait to be used by fpc-FreeBSD.

Many thanks.

Fre;D





-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Mangle-name-in-fpc-FreeBSD-tp5724528.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal