Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-thread LoadLibary problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I'm trying to run a c++ library from a java program. I've loaded it, defined the methods... everithing works ok.

Then I decided to move the dll(static{loadlibrary()}) to a Runnable class, in order to make it work in a separate thread (a printing server called from the main application).

Well... does'nt work. The library is loaded, but when I try to access to the methods I got a "unsatisfied link" error (normally that happens when you cannot access to the library).

Note: The library, definitions, code, etc are the same that was working in the main application... can be some multi-thread error? The library links are lost when you send the thread to the "sleeping" pool calling wait()?

Some ideas?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top