Results 1 to 5 of 5

Thread: bzip2.dll

  1. #1
    sylvain is offline Registered User
    Name: Sylvain Fasel
    Organization: university of Geneva
    Project: quantum cryptographic systems
    Join Date
    Feb 2003
    Location
    Geneva (Switzerland)
    Posts
    42

    bzip2.dll

    Hi,

    I am developing with Ice for .Net using c# with Visual Studio 2005.

    Everything works well, except for the fact that each time the Ice.dll is loaded I can see an exception thrown (note that this exception is internally caught, so there is no particular problem for running my program).

    This exception say that:
    'myprog' (Managed): Loaded 'C:\myprog\bin\x86\Debug\Ice.dll', Symbols loaded.
    A first chance exception of type 'System.DllNotFoundException' occurred in Ice.dll

    Additional information: Unable to load DLL 'bzip2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    So it is about bzip2.dll. This dll is not a c# assembly but a c++ one it seems, so I cannot simply add it as a reference in my project.

    My question is: how can I ensure that bzip2.dll is found (and thus that compression features are enabled)?

    Thanks a lot in advance.
    Sylvain Fasel
    Group of Applied Physics
    University of Geneva
    www.gapoptic.unige.ch
    Research in applied quantum cryptography

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    You need to make sure that the location of the bzip2.dll is in your PATH environment setting when you run your application.

  3. #3
    sylvain is offline Registered User
    Name: Sylvain Fasel
    Organization: university of Geneva
    Project: quantum cryptographic systems
    Join Date
    Feb 2003
    Location
    Geneva (Switzerland)
    Posts
    42
    Hi Dwayne,

    Thanks for your reply.

    What you proposed is not very convenient when deploying an application, I think you'll agree.

    Ice.dll seems to search first for bzip2.dll being in the same folder, so I am looking for a way to instruct VS2005 to copy this dll into the build folder.

    It would be nice if bzip2.dll could be embedded in Ice.dll, so that we could deal with a single assembly.

    Regards.
    Sylvain Fasel
    Group of Applied Physics
    University of Geneva
    www.gapoptic.unige.ch
    Research in applied quantum cryptography

  4. #4
    sylvain is offline Registered User
    Name: Sylvain Fasel
    Organization: university of Geneva
    Project: quantum cryptographic systems
    Join Date
    Feb 2003
    Location
    Geneva (Switzerland)
    Posts
    42
    Well, adding bzip2.dll to the right project and setting its properties to "copy if newer" does the trick, but I would prefer a cleaner solution.

    Thanks
    Sylvain Fasel
    Group of Applied Physics
    University of Geneva
    www.gapoptic.unige.ch
    Research in applied quantum cryptography

  5. #5
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    This really has little to do with Ice, and more to do with how Windows locates DLLs. Basically, for protocol compression to work, the Ice run time requires bzip2.dll. But that DLL may not be present on all machines. So, the run time tries to load the DLL dynamically and, if that fails, simply disables protocol compression.

    Unless you actually need protocol compression, no harm is done. If you do need it, simply put bzip2.dll into the system or windows directory, where it will be found.

    See Dynamic-Link Library Search Order (Windows) for more information.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. use ice in dll?
    By cool stone in forum Help Center
    Replies: 4
    Last Post: 05-23-2007, 07:52 AM
  2. Replies: 3
    Last Post: 05-02-2007, 10:51 AM
  3. Multithreaded DLL
    By sgonepudi in forum Help Center
    Replies: 1
    Last Post: 01-22-2006, 12:51 PM
  4. Any benchmarks on using bzip2 compression?
    By wobster in forum Comments
    Replies: 4
    Last Post: 09-19-2004, 10:13 AM
  5. Missing DLL
    By dwforslund in forum Help Center
    Replies: 7
    Last Post: 02-19-2003, 11:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •