Home Help Center

a surprising problem

JesseWJesseW Member JesseWangOrganization: TXProject: APP
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

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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
  • JesseWJesseW Member JesseWangOrganization: TXProject: APP
    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
    '
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    I'm sorry, but we cannot provide any assistance until you update your signature. Please see the link provided in Mark's post.
  • JesseWJesseW Member JesseWangOrganization: TXProject: APP
    update signature

    i have updated my signature ,so ......... :):)
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    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?
Sign In or Register to comment.