axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Hawkins (JIRA)" <>
Subject [jira] Created: (AXISCPP-548) Better error msgs when failing to load library
Date Mon, 14 Mar 2005 13:39:07 GMT
Better error msgs when  failing to load library

         Key: AXISCPP-548
     Project: Axis-C++
        Type: Bug
    Reporter: John Hawkins
    Priority: Minor

When failing to load libs we do not put out the last error msg e.g.
int XMLParserFactory::loadLib()
    m_LibHandler = PLATFORM_LOADLIB(m_pcLibraryPath);

    if (!m_LibHandler)

    return AXIS_SUCCESS;

There are already methods in Platform specifics to get the last error msg and these were used
in Axis Transport2. I think they are also used in other lib load failure situations. We must
change all lib load fails to give as much info as possible.

 * Get the last error code from the system.
 * Please ensure that this is a thread safe implementation
 * and that it returns a long
 * @return long the lsat error message for this thread
#define GETLASTERROR GetLastError();

 * From the last error number get a sensible std::string representing it
 * @param errorNumber the error Number you are trying to get a message for
 * @return the error message. NOTE: The caller is responsible for deleting the returned string
#define PLATFORM_GET_ERROR_MESSAGE(errorNumber) getPlatformErrorMessage(errorNumber);

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message