[Lazarus] Loading an library from thread on Ubuntu 12.04 64bit.

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri Jun 15 10:08:25 CEST 2012

On Fri, 15 Jun 2012, fred f wrote:

> Hi guyz,
> I have  been fighting few hours to solve the problem which occurs on
> Ubuntu 12.04 64bit.
> The same code works find on U12.04 32bit or U10.04 32 or 64bit.
> It is about loading an library (it doesn't matter which one, all
> behave the same) from thread. When I call the same code without
> threading then it works fine.
> It raises an access violation and when built with all checks in
> project options, then it crashes on LoadLibrary() with Range error.

The range error by itself has little meaning, since it works in non-threaded
apps. I would not concentrate on that.

It sounds like a bug in the dl library shipped with U12.04 64bit.

Maybe you can try to load all needed libraries before spawning your threads.


More information about the Lazarus mailing list