Results 1 to 2 of 2

Thread: Apparent inconsistencies in error handling across platforms

  1. #1
    jonp is offline Registered User
    Name: Jon Petitta
    Organization: GFI inc.
    Project: Distributed Task Framework
    Join Date
    Jan 2011
    Posts
    14

    Apparent inconsistencies in error handling across platforms

    Dear ZeroC,

    I'd just like to start out by saying that I appreciate all of the hard work that you guys have put into ICE!

    I will admit that I have not looked at the whole code base, just the source for the C++ version of IceBox, in relation to loading a dll. It looks like the error handling/messaging for _WIN32 versions have been left out. There is code present for the Linux versions to get the last error message after platform API calls, but none appears to be present for _WIN32.

    If this is indeed the case, I would like to request that the same level of care be applied to all of the supported platforms.

    I ran across this because recently I have been having issues getting the C++ version of IceBox to work properly, and the only thing it would tell me is the following.

    "ServiceManager: unable to load entry point `" + entryPoint + "'"

    The error message would have been more helpful had an error code been present. Running it on Linux I probably would have received a more meaningful error message.

    The problematic code can be found in the following files/lines[func]:
    ServiceManagerI.cpp/580-592[start]
    DynamicLibrary.cpp/158,180[load]|192[getSymbol]

    Jon
    Jon Petitta
    GFI Inc
    http://www.gfi.com
    Distributed Task Framework

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Jon,

    Thank you pointing this out. We should indeed provide a more detailed error message when a DLL fails to load on Windows.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. handling complex numbers
    By sidney in forum Help Center
    Replies: 6
    Last Post: 03-11-2010, 01:25 AM
  2. C# AMI exception handling on client
    By LAstakhov in forum Help Center
    Replies: 3
    Last Post: 07-10-2008, 10:08 AM
  3. Ice.Application exception handling
    By henrik in forum Help Center
    Replies: 1
    Last Post: 02-11-2007, 09:56 AM
  4. Exception handling in IceStorm
    By nbasu33 in forum Help Center
    Replies: 4
    Last Post: 01-16-2007, 09:02 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
  •