Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-08

LoadLibrary(freeBSDlibrary) does not work...

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

fredvs

Hello.

I try to dynamically load libraries in freeBSD 64 bit with DynLibs.LoadLibrary(reeBSDlibrary), with a fpc-64-bit-freeBSD application (compilation has no errors.)

But at LoadLibrary(freeBSDlibrary), program crash... ;-)

Here the error message from gdb =>

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 808406400 (LWP 100359/deviceinfos)] 0x0000000000000000 in ?? ()

I have try on a simple fpc-64-bit-freeBSD application to load 64-bit-freeBSD-libraries, 32-bit-freeBSD-libraries and 32-bit-Linux-libraries. => all crash...

Is the problem known and does it exist a solution ?

Thanks.

PS: I have experience on using DynLibs.LoadLibrary, i do not have that problem with Windows, Linux and OSX.

Fred

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/LoadLibrary-freeBSDlibrary-does-not-work-tp5719943.html Sent from the Free Pascal - General mailing list .

Reply by email

fredvs
to fredvs

Hum, little rectif...

It seems that LoadLibrary is not the guilty. I was able to dynamically load some freeBSD 64 bit libraries.

The crash comes somewhere else, (maybe from DynLibs.GetProcedureAddress).

I will do more investigations to find what is wrong with dealing libraries for fpc applications in freeBSD.

Write you later...

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/LoadLibrary-freeBSDlibrary-does-not-work-tp5719943p5719944.html Sent from the Free Pascal - General mailing list .

Reply by email