Results 1 to 3 of 3

Thread: Ice 3.4.0/3.4.1 with Visual C++ 2010

  1. #1
    ngambek2003 is offline Registered User
    Name: Budyanto Himawan
    Organization: WMS Inc.
    Project: Casino back end services
    Join Date
    Sep 2009
    Posts
    87

    Ice 3.4.0/3.4.1 with Visual C++ 2010

    Hi,

    I have Visual c++ 2010 express installed and I'm building my c++ icebox services with it. And I'm using Windows SDK v 7.1.

    When I start up the IceBox I get a crash. Are the Ice binaries compatible with Visual C++ 2010? This same service is working ok with Ice 3.4.0 when the service is compiled with Visual C++ 2008 and Windows SDK v6. I tried this using both Ice 3.4.0 and 3.4.1.

    The the output from the console is attached. It seems that the ice logger is logging garbage before it crashed.

    And this is the start() method
    Code:
    void ConfigurationSvc::start(const string &name,
                                 const Ice::CommunicatorPtr &communicator,
                                 const Ice::StringSeq &)
    {
        m_comm = communicator;
        m_logger = communicator->getLogger();
        m_logger->trace("ConfigurationSvc", "starting");
    
        if (!m_adapter)
        {
            m_logger->trace(name, "creating new adapter");
            m_adapter = communicator->createObjectAdapter(name);
    
            m_machineConfigurationI.reset(new MachineConfigurationI(*this));
            Ice::ObjectPrx prx = m_adapter->add(m_machineConfigurationI.get(),
                    communicator->stringToIdentity(communicator->getProperties()->getProperty("MachineConfiguration.Identity")));
        }
    
        m_logger->trace(name, "activating adapter");
        m_adapter->activate();
        m_logger->trace(name, "adapter activated");
    
        // Initialize the database connection pool
        std::string dbConnString = m_comm->getProperties()->getProperty("ODBC.Connection");
        m_dbConnectionPool.reset(new DbConnectionPool(m_comm, dbConnString, 5));
    }
    Thanks
    Budyanto
    Attached Images Attached Images

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi,

    Are you sure you're using the right Ice run-time DLLs? Please note that the libraries for Visual Studio 2010 are located in <ICE_HOME>\bin\vc100 (or <ICE_HOME>\bin\vc100\x64), so your PATH should include the appropriate directory.

    Regards,
    Mark

  3. #3
    ngambek2003 is offline Registered User
    Name: Budyanto Himawan
    Organization: WMS Inc.
    Project: Casino back end services
    Join Date
    Sep 2009
    Posts
    87
    Thats it. I didn't realize there were separate directories. Yes that fixed it.

    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 11-10-2011, 09:45 AM
  2. Visual Studio 2010 plugin for x64 projects
    By chow in forum Help Center
    Replies: 2
    Last Post: 11-28-2010, 05:47 PM
  3. Replies: 3
    Last Post: 08-05-2010, 03:39 PM
  4. Visual Studio plugin + VS 2010
    By dmitry.medvedev in forum Help Center
    Replies: 1
    Last Post: 07-22-2010, 08:59 AM
  5. Visual Studio 2010 Integration
    By christian in forum Help Center
    Replies: 9
    Last Post: 06-23-2010, 10:29 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
  •