Loading library with dependencies (on other dll's)

I have created a DLL with JNI in it.
Several of the calls within this dll depend on other dll's.
If I put all the dependent dll's in say System32 it runs fine, of if I put the folder containing all the dlls in the %PATH% it works.
Are there any other options for this?
Reason being if another developer wants to code in my project they will either need to move dlls to system32 or add the folder to their own PATH.

avalanche333 wrote:
jschell wrote:
Are there any other options for this?The OS, not java, is what loads the shared libraries. You must meet the rules of the OS.
And OSes, including windows, requires that it is the shared library path. Which is PATH on windows.
The reason System32 works is because it is in PATH.
Otherwise you must use load().Hmm, well I will add the dir to PATH then.
Loading each files does not seem reasonable as there are soo many DLL's and I believe I have to load them in the proper order.Which of course is up to you. It is trivially simple to provide a config file with the names ordered in it and use that to drive a loader.
>
Only think I don't like about this is that it makes development a little more tedious. Anytime someone wants to use my library or test it they will need to first set the dir up in their path.Which anyone that is using a library should expect anyways or should get use to it in the first place.
As a library developer you need do nothing more than tell the user what is required. It is nice to tell them all of the shared libraries and load order, but then why do you expect that most apps will not use an installer which deals with that?

Similar Messages

  • Firfox 4 freezes for 1-2 minutes when loading sites with twitter or other social media content like MSNBC and other news sites.

    Firefox locks up for a minute or two when loading pages on popular news websites like MSNBC,COM. When this happens the bottom status typically ready something about a link to twitter.
    I do not use twitter and it is likely the company firewall blocks it if it uses any non-typical port.
    I had to download the old version of the browser due to this problem.

    Has anyone gotten back to you on this? I am experiencing the same problem on two different systems since release 4.1.2_03 and now have tried _05 with no luck.

  • IPhoto "hangs" when Loading Library

    I'm having an issue with iPhoto, where, when I launch it, the app appears to open, but in the middle, where the photos are normally displayed, it hangs up saying "loading library", with the spinning gray cog wheel.
    No photos ever load, yet the program never crashes. It just stays in this state.
    I have opened iPhoto on a test users account, although none of my photos were present, but the app opened right up, leaving me thinking it's related to my normal user account.
    I have tried trashing the iphoto plist preference from my user preferences folder, but that did nothing. Same thing happens...
    iPhoto is version 5.0.4, and I'm running OS 10.4.11
    Any ideas? Thanks in advance...

    Jim,
    Another test - create a new library in your regular user account and see if it works. Hold the Option key as you launch iPhoto, select "Create Library". Give it a different name so you don't overwrite your current library. Does a new, empty library open? Import some test photos and see if it works. If so...
    It sounds like the database in your library is damaged beyond repair. Do you have an up-to-date backup? If not, you can try rebuilding the library with iPhoto Library Manager. It sometimes is successful when iPhoto's rebuild fails. Also, it creates a new library for the rebuild, so if it doesn't work you can just trash the new library with no harm done.
    If iPLM can't rebuild the library, then you may have to start over with a new library. You can follow the steps under "Manual Rebuild" in the Apple article referenced above. Before you do, I recommend you read lori_diloreto's post in this thread: http://discussions.apple.com/thread.jspa?messageID=1853164. She describes an alternate (better) way to repopulate your library, and she details what you should expect if you follow her instructions.
    Regards.

  • Can't load library

    I have two Macs at home, each with an iTunes library, but my main library is stored on a Drobo attached to a MacMini. I use this with my Apple TV (2) daily and it has been working well for months. Suddenly it started taking a long time to start playing TV shows, and sometimes having to buffer in the middle of them. Yesterday all seemed OK, and we watched a movie in the afternoon. Later it simply stopped loading the library, and now all I get is the spinning lines and "Loading Library" message.
    The other iTunes library works fine. I can't pinpoint the problem because I can use Homesharing with my iPhone, so I'm guessing there isn't a problem with the network, the Drobo or the MacMini, and the fact the other iTunes library works means the Apple TV is OK?
    It's very frustrating - tried rebooting everything and resetting Apple TV. Any suggestions would be gratefully received.

    I doubt the issue is the AppleTV (though it could be).
    It is either the Drobo or perhaps more likely some corruption of the library held on the Drobo, the latter problem can be difficult to pin down except by creating a test library (start option while opening iTunes) on the same suspected problem disk to see if it has the same issues (it wouldn't have to be huge).
    Are all disks healthy on the Drobo? It's not rebuilding/redistributing data after a large file  deletion or new disc addition? Does the Drobo perform well for other tasks? Any Drobo/Drobo dashboard updates recently?  I assume the Drobo is not sleeping?

  • Freezing at "loading library"

    Every so often when I try to connect to my iMac, via Home Sharing, my apple tv freezes at the "loading library" screen. The only way to exit this screen is to restart iTunes or restart the apple tv. Once I do either, I am able to stream from my iMac fine.
    I have an appletv 2g and running OS X 10.6.5 and iTunes 10.1.

    Just posted this to another thread but it might help ..
    Had the same problems on my new ATV2 bought a few days ago and been trying ideas in the forums.
    Finally called apple support last night and found a solution - try another router !!
    Seems my Dlink router 524 was the problem although don't know why. After an hour on the phone Apple man suggested moving the telly and ATV2 into my office where the router is and from 3 feet all worked perfectly. In the lounge only 40 feet away and through two rooms and with 3 to 4 bars on the signal strength no deal. Would either not link up to my library, occasionally show some cover art or just "loading library" with no result.
    Tried multiple restores of ATV2 (which updated it to 4.1), even plugged it into the Mac with a micro cable and did a DFU restore in Itunes (didn't work still got 4.1), tried changing the channel on the router, tried all the firewall options, tried a new user signin on the Mac and a fresh library in case there was some corruption (although works fine on Mac) .. all to no avail.
    So .. pulled out another router I had (Netcomm NB504) and swapped them over - worked with the ATV in the office just fine .. relocated the telly and ATV2 back to the lounge and all is working perfectly. Still getting 4 bars on the signal strength but no failures to find the library and downloads start instantly.
    (Tried looking for the QoS option in both routers but couldn't find it so this still might be the issue)
    If you've tried ethernet connection (which I didn't) then it seems the issue is in the router options somewhere ..

  • "Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'"

    Hi!
    As you can see from here :
    http://www.fabiocavallo.it/sap/maxdb.jpg
    MaxDB seems to work fine, but after starting application server i have got an error :
    SAPGUI Logon Error Message:
    http://www.fabiocavallo.it/sap/sapguilog.jpg
    ...here comes dev_w0 :
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL 1
    ACTIVE TRACE COMPONENTS all, MJ
    B
    B Thu May 22 19:58:50 2008
    B create_con (con_name=R/3)
    B Loading DB library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll' ...
    M *** ERROR => DlLoadLib: LoadLibrary(C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll) Error 126 http://dlnt.c 237
    M Error 126 = "Impossibile trovare il modulo specificato."
    B *** ERROR => Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'
    http://dbcon.c 4726
    M sysno 00
    M sid NSP
    M systemid 560 (PC with Windows NT)
    M relno 7000
    M patchlevel 0
    M patchno 95
    M intno 20050900
    M make: multithreaded, ASCII, optimized
    M pid 3376
    M
    M kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    M length of sys_adm_ext is 360 bytes
    M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3376) http://dpxxdisp.c 1301
    I MtxInit: 30000 0 0
    M DpSysAdmExtCreate: ABAP is active
    M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M
    M Thu May 22 19:58:51 2008
    M DpShMCreate: sizeof(wp_adm) 6328 (904)
    M DpShMCreate: sizeof(tm_adm) 3605136 (17936)
    M DpShMCreate: sizeof(wp_ca_adm) 1200 (60)
    M DpShMCreate: sizeof(appc_ca_adm) 1200 (60)
    M DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    M DpShMCreate: sizeof(comm_adm) 528048 (1048)
    M DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M DpShMCreate: sizeof(slock_adm) 0 (96)
    M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M DpShMCreate: sizeof(file_adm) 0 (72)
    M DpShMCreate: sizeof(vmc_adm) 0 (1280)
    M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
    M DpShMCreate: sizeof(gw_adm) 48
    M DpShMCreate: SHM_DP_ADM_KEY (addr: 06420040, size: 4205552)
    M DpShMCreate: allocated sys_adm at 06420040
    M DpShMCreate: allocated wp_adm at 06421A28
    M DpShMCreate: allocated tm_adm_list at 064232E0
    M DpShMCreate: allocated tm_adm at 06423310
    M DpShMCreate: allocated wp_ca_adm at 067935A0
    M DpShMCreate: allocated appc_ca_adm at 06793A50
    M DpShMCreate: allocated comm_adm at 06793F00
    M DpShMCreate: system runs without slock table
    M DpShMCreate: system runs without file table
    M DpShMCreate: allocated vmc_adm_list at 06814DB0
    M DpShMCreate: allocated gw_adm at 06814DF0
    M DpShMCreate: system runs without vmc_adm
    M DpShMCreate: allocated ca_info at 06814E20
    M DpShMCreate: allocated wall_adm at 06814E28
    X EmInit: MmSetImplementation( 2 ).
    X MM global diagnostic options set: 0
    X <ES> client 0 initializing ....
    X Using implementation view
    M <EsNT> Memory Reset disabled as NT default
    X ES initialized.
    M ThInit: running on host PCFABIO
    M
    M Thu May 22 19:58:52 2008
    M calling db_connect ...
    B create_con (con_name=R/3)
    B Loading DB library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll' ...
    M *** ERROR => DlLoadLib: LoadLibrary(C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll) Error 126 http://dlnt.c 237
    M Error 126 = "Impossibile trovare il modulo specificato."
    B *** ERROR => Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'
    http://dbcon.c 4726
    M ***LOG R19=> ThInit, db_connect ( DB-Connect 008192) http://thxxhead.c 1426
    M in_ThErrHandle: 1
    M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) http://thxxhead.c 10240
    M
    M Info for wp 0
    M
    M stat = WP_RUN
    M waiting_for = NO_WAITING
    M reqtype = DP_RQ_DIAWP
    M act_reqtype = NO_REQTYPE
    M rq_info = 0
    M tid = -1
    M mode = 255
    M len = -1
    M rq_id = 65535
    M rq_source =
    M last_tid = 0
    M last_mode = 0
    M semaphore = 0
    M act_cs_count = 0
    M csTrack = 0
    M csTrackRwExcl = 0
    M csTrackRwShrd = 0
    M control_flag = 0
    M int_checked_resource(RFC) = 0
    M ext_checked_resource(RFC) = 0
    M int_checked_resource(HTTP) = 0
    M ext_checked_resource(HTTP) = 0
    M report = > <
    M action = 0
    M tab_name = > <
    M vm = no VM
    M
    M *****************************************************************************
    M *
    M * LOCATION SAP-Server PCFABIO_NSP_00 on host PCFABIO (wp 0)
    M * ERROR ThInit: db_connect
    M *
    M * TIME Thu May 22 19:58:52 2008
    M * RELEASE 700
    M * COMPONENT Taskhandler
    M * VERSION 1
    M * RC 13
    M * MODULE thxxhead.c
    M * LINE 10439
    M * COUNTER 1
    M *
    M *****************************************************************************
    M
    M PfStatDisconnect: disconnect statistics
    M Entering TH_CALLHOOKS
    M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm http://thxxrun1.c 720
    M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed http://thxxtool3.c 260
    M Entering ThSetStatError
    M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M Entering ThReadDetachMode
    M call ThrShutDown (1)...
    M ***LOG Q02=> wp_halt, WPStop (Workproc 0 3376) http://dpnttool.c 327
    File dbsdbslib.dll' is 'there' (in 'C:\SAP\NSP\SYS\exe\run\), maybe i have to set environment variable in windows for SAP.
    Could you help me, please ?
    I don't know how to set these variables.......
    Many thanks.
    Regards.
    Fabio

    Hello Fabio,
    -> You wrote:
    "File dbsdbslib.dll' is 'there' (in 'C:\SAP\NSP\SYS\exe\run\)"
    => Please check the version of this file.
    < Go to file properties ->Version && update with 'file version', Platform,
       Product Name, Product Version information >
    -> What version of the SAP system did you install?
         "I suppose that i can download this patch from Sap MaketPlace, but i can't register there, because i have no
          Customer or   Installation Number! (i can't Logon in SAP....) "
         From were did you get the SAP software installation or CD?
    -> Could you upgrade the database client software on the application server to the version 7.7.04.08 or higher.
        You pointed "As you can see from here : http://www.fabiocavallo.it/sap/maxdb.jpg u2026 "
       => If the database and application were running on the same server, you installed the database
    Software version 7.6.02.17. Please run 'sdbregview -l' to review the list of all installed packages
    on the server.
    -> "MaxDB seems to work fine, but after starting application server i have got an error"
         Was the system working fine before? What was changed?
         Or you was not able to start the application server after installation. ?
    Thank you and best regards, Natalia Khlopina

  • Since loading the latest version of firefox i can no longer print. instead a message comes up "can not load library 'DLBAPRP.DLL' using defaults, error 126. what happened?

    error 126 can not load library "DLBAPRP.DLL" using defaults. this message appears when we try to print from our web bookmarks or any acrobat or pdf files

    That error seems to be new with Firefox 4 - never heard of it with earlier versions of Firefox, but it goes back many years in various Windows programs.
    See this [http://www.google.com/search?client=ubuntu&channel=fs&q=DLBAPRP.Dll&ie=utf-8&oe=utf-8 search].

  • I can no longer print .pdf docs, I get: lxbzgf.DLL was not found & can not load library LXBZPRP.DLL

    When trying to print a .pdf doc, it now fails and I get the following dialog box: "lxbzgf.DLL" was not found" and then after closing the session, pops the following dialog box which says: "can not load library "LXBZPRP.DLL"
    I think it is related to laptop operating syst. (Windows XP Nedia Center Edition) and latest Adobe Readed XI. Can you help with the proper diagnostic and what should I do, please?
    Thanks,
    Daer Rotciv

    I really don't know what SP3 is but my Gateway laptop operating system is Windows XP Media Center Versión 2005 with Update Rollup 2.
    The only additional information I see on this system is MS WIN MCE GTW US V1.5 07/06. 7515344
    Thanks
    Enviado desde mi sistema móvil personal de telecomunicaciones

  • Failed to load library 'dxva2.dll' appeared at Sky...

    Hi, everyone,
    I encoutered the issue about failed to load library 'dxva2.dll' again.
    My os is Windows XP SP3 Professional.
    After I installed Skype 7.5.73.102 and then it started first time automatically.
    The error message appeared such as Failed to load library 'dxva2.dll' again.
    What's wrong with Skype 7.5.73.10X?
    How could I solve the issue which appear again?
    Best regards,
    Steven.

    Your Windows XP is more than likely missing mandatory Windows updates that are needed in the latest version of Skype.  To resolve the problem, you can get those updates here:
    http://community.skype.com/t5/Windows-desktop-client/Fatal-error-fail-to-load-library-dxva2-dll/m-p/...

  • Fatal Error: Failed to load library 'pdh.dll.'

    When I double click on the Skype icon, a dialogue box pops up. It says "Fatal Error" at the top, and inside, it says, "Failed to load library 'pdh.dll.'" I cannot get Skype to open at all.
    I had used Skype with no problems the day before, and I didn't do anything to any files or anything. I don't think.
    I have restarted my computer, un-installed and reinstalled Skype, and went into %appdata% and renamed the Skype folder, tried to open Skype, then renamed the folder back again. None of this worked.
    I ran a Malware scan and it came back clean. I am currently running a virus scan.
    Can anyone help me?
    Solved!
    Go to Solution.

    See this case:
    http://community.skype.com/t5/Windows-archive/Skype-crashes-with-Adobe-Reader-XI/m-p/1557574/highlig...
    Have you recently updated your Adobe Reader application?

  • Failed to load library itunesmobiledevice.dll - 0x7F

    I am getting an error of "Failed to load library itunesmobiledvice.dll - 0x7F (The specified procedure could not be found) using iTunes 10.4.0.80.
    I am running windows 7 32bit. Any ideas?
    Thanks

    Hi I did a little digging and came up with something that got it fixed. Here goes:
    1. Temporarily shut down my anti virus software..
    2. Open the control panel and go to the add/delete programs going to the uninstall section.
    3. Remove all Apple products in the following order:
          ITunes, QuickTime, Apple Software Update, Apple Mobile Device Support, Bonjour, &amp; Apple Application Support.
         You do not need to remove safari.
    4. Restart the computer.
    5. Go to Apple.com and download latest version of oTunes.
    6. Re-install.
    This worked for me. No more error mags and all is working again.

  • I keep getting an error message when I attempt to print: "Cannot load library LXBCPRP.DLL", but only from within Firefox.

    Within Firefox and websites visited within Firefox, whenever I try to print using my Lexmark Z605 printer, the error message "Cannot load library LXBCPRP.DLL, using default '' appears. The printer works fine from other programs and indeed worked fine from within versions of Firefox before 4.0.1, and I have even updated drivers from Lexmark, but the problem persists.

    Thanks for your time, but I maintain my position. There has been no problem with my printer from purchase (5+ years ago) until Firefox 4, in particular no problem with Firefox 3.x. I have no problem with ANY other applications I use now and have run through them all to check.
    Firefox 4.0.1 remains the prime suspect, but I am willing to try any fix that the wonderful members of Firefox community may care to suggest.

  • Purify-"Can't load library c:\jdk1.3.1\jre\bin\verify.dll"

    I have JVM crash problem. So I tried to use purify to check the memory array boundary and other memory issues.
    When I set purify to get "Memory profiling data" in "Run program" dialog, everything is ok. But if I want to get "Error and leak data", it always complained
    "Can't load library c:\jdk1.3.1\jre\bin\verify.dll", because access is denied. Could not create the Java virtual machine."
    I have tried JVM1.4 and JVM1.3 For JVM1.3, I am using -classic as purify requested.
    Any information will be greatly appeciated. And I am dyning for the JVM crash problem. I have checked the c and JNI code and feel hard to find the problem by reading. Is there any other way or tools I can use? I have tried -Xcheck:jni, jdb. Nothing is useful. Thanks a lot.

    I have JVM crash problem. So I tried to use purify to
    check the memory array boundary and other memory
    issues. Do you have any native code (JNI) of your own? If not, this exercise is likely to be a complete waste of time on your part, since it won't lead you to anything in your source that can be changed to fix it. It's a Java VM bug, and you'll have to deal with it in other ways.
    It's entirely possible that Purify has some problems handling the JDK 1.3.1 verify.dll - probably because of some unexpected object structure or layout within it. Have you contacted Purify support?
    But like I said, this is just going to be a complete waste of time on your part. Try a newer JDK (1.3.1_03 if you must stay with 1.3.1, or use the IBM 1.3 JDK, or just go to JDK 1.4.1), and see if you still run into this.

  • HT204053 i have an itunes library with 1,000+ songs on a pc.  my daughter has a macbook air and i loaded my apple ID onto it.  how do i get the songs from my itunes account to show up?  This works fine on her iPhone, but having trouble on the new macbook

    i have an itunes library with 1,000+ songs on a pc.  my daughter has a macbook air and i loaded my apple ID onto it.  how do i get the songs from my itunes account to show up?  This works fine on her iPhone, but having trouble on the new macbook air

    Hey kbert73
    I would do a transfer of purchases from the phone and not sync. If you sync then it will want to start over and sync music that is on the MacBook Pro. If you want to transfer the music, check out the article below that will give you multiple options on how to move. I have also provided on how to sync with multiple computers.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I upgraded to a new macbook pro and gave my old macbook to my daughter, we have deauthorized all other computers it will not let us download itunes library with her id it say it already authorized to another apple id... help how do we fix this

    i upgraded  to a macbook pro and gave my old macbook to my daughter, we tried to get her itunes library downloaded on it and it said that there was already an apple id assigned to that computer.
    we went on the new one an de authorized all computers and then tried to re load her itune library on and it still isnt working. what are we doing wrong?
    i called tech support and they are useless until you are willing to pay them 269 dollars to give you the information. ive spent a smal fortune buying apple products over the last 2 years, the least they could do is answer a simple question. Please help

    It sounds to me like there are two separate processes being intertwined above:
    1.  Setting up your daughter's MacBook with identifying info; e.g., Apple ID for the user account on that machine.
    2.  Transferring the iTunes library (a very different operation).
    Have you used Apple's Migration Assistant to move your daughter's information from her old machine to the MacBook?  That would have avoided this whole issue.
    If not, either start the process over and use Migration Assistant, or try to more carefully and precisely define exactly what you did to accomplish this transition.  You said, for example, "there was already an Apple ID assigned to this computer."  That statement almost certainly did not originate with iTunes.

Maybe you are looking for

  • Unable to re-load podcasts on iPhone from iTunes.

    I manage my podcasts manually. I download podcasts to iTunes on my iMac.  I then manually add the podcasts to my iPhone 4s, in the podcast App. However, sometimes I need to clear up some space on the iPhone, so I delete podcasts that I haven't listen

  • Internal/External displays blank when external connected while sleeping

    When I connect my external display to my MBP (late 2011) while it's sleeping, the MBP awakens but both the internal & external display are blank. The MBP is running ML and is connected to external display via DVI. No response to external Logitech key

  • No confirmati​on email + twice the charge?

    Yesterday I wanted to place an order for Lenovo y50 laptop. The total cost was coming out to be approx. $1000, I clicked pay with debit card and had it shipped/billed to a friend's address in the US (I'm currently living in the UK) and when I finishe

  • Network slowness for PC's connected to phones

    We are having a problem with users reporting slowness when they are connecting their PC's through their phones. The phones in use are 7912's 7940's and 7960's. The network layout is two 3560G PoE switches with the data and voice network separated by

  • Imaging workstation agent

    We have not been using the imaging agent for our zen 6.5 environment and it is not part of the ZFD agent installation. However, a couple of times recently I have had to uninstall and then reinstall the zfd agent. After the reboot, I get the window "Z