Sign in Join

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

Mailing lists / lazarus / 2012-06

Loading an library from thread on Ubuntu 12.04 64bit.

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

fred f

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.

Do you have any idea about change in U12.04 64bit which can do this crap?

Thanks in advance.

ff.

Reply by email

Unknown author
to fred f
fred f wrote 11 lines
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.

Michael.

Reply by email