Archived

This forum has been archived. Please start a new discussion on GitHub.

a surprising problem

1 Ice::PropertiesPtr properties = Ice::createproperties();
2 properties->load("MWconfig")

when it goes to line 2 , there will thow out a "unhandled excepiton in ***.exe:0xC0000005:Access Violation."

Comments

  • mes
    mes California
    Welcome to the forum.

    Please update your signature as described in this post.

    Also, please provide as much information as possible about your environment, including the version of your Ice release, compiler, operating system, and anything else you think might be useful.

    Take care,
    - Mark
  • the detailed description

    the server is linux
    the client is win_xp,vc++ 6.0

    the code :

    BOOL InitMW( )
    {
    Ice::CommunicatorPtr communicator;
    try
    {

    int argc = 0;
    Ice::PropertiesPtr properties = Ice::createProperties();
    properties->load("MWconfig");
    communicator = Ice::initializeWithProperties(argc, 0, properties);

    }
    catch(const IceUtil::Exception& ex)
    {
    return FALSE;
    }
    return TRUE;
    }

    when i run the red line ,i will catch the error
    watch "properties" ,it's value is "CXX0017: Error: symbol "properties" not found
    '
  • matthew
    matthew NL, Canada
    I'm sorry, but we cannot provide any assistance until you update your signature. Please see the link provided in Mark's post.
  • update signature

    i have updated my signature ,so ......... :):)
  • matthew
    matthew NL, Canada
    Are you mixing up the debug & release mode libraries? See http://www.zeroc.com/faq/windowsLibraryMixup.html for some details.

    Another possibility is that your configuration file is bad. What is the content?