Results 1 to 4 of 4

Thread: MS Visual Studio 2010 built .exe fails to run outside

  1. #1
    adimadan is offline Registered User
    Name: Aditya Madan
    Organization: Apollo Capital Management
    Project: pricing service
    Join Date
    Aug 2010
    Posts
    2

    MS Visual Studio 2010 built .exe fails to run outside

    I have an ICE project created using MS Visual Studio 2010 with the ice plugin activated. I am able to run my service from within the IDE, but when I try to run the .exe from outside, I get the following error, I have all the dlls copied to the same directory as the .exe file:


    !! 08/05/10 14:18:42.535 CDSPricingService.exe: error: ObjectAdapterI.cpp:1215:
    error while parsing endpoint `invalid object adapter endpoint `∞l☼"≡l☼"


    Any help is appreciated.

    Thanks,
    Adi

  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 Adi,

    Welcome to our forums!

    The Ice add-in for Visual Studio is only used at build-time; it helps translate your Slice definitions (.ice files) into the corresponding C++ or C# code.

    So it's surprising you get different behavior inside vs outside Visual Studio.

    The error message strongly suggests a problem with the .Endpoints property of your object adapter ... it's set to 'invalid object adapter endpoint `∞l☼"≡l☼', while the expected value should be like 'tcp -h myHost'!

    How do you set this property? Can you post a short version of your application that exhibits this behavior?

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    adimadan is offline Registered User
    Name: Aditya Madan
    Organization: Apollo Capital Management
    Project: pricing service
    Join Date
    Aug 2010
    Posts
    2
    Hi Bernard,

    Thanks for replying, here is the snippet of my server code:

    Ice::ObjectAdapterPtr adapter =
    communicator()->createObjectAdapterWithEndpoints("CDSPricingServi ce", "default -h 127.0.0.1 -p 10000")


    Not sure why this is working fine within the IDE but not when running the .exe from outside.

    -Adi

  4. #4
    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 Adi,

    This sounds like a memory corruption issue. Hard to say where without seeing more code.

    Any chance you may be using/copying the wrong DLLs? You need the DLLs from the bin/vc100 directory (or bin/vc100/x64) for an application built with VS 2010.

    If that's not the issue, one option could be to attach to your server and step into the createObjectAdapterWithEndpoints call, and try to find out how/where your endpoints string gets trashed.

    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. 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. Visual Studio plugin + VS 2010
    By dmitry.medvedev in forum Help Center
    Replies: 1
    Last Post: 07-22-2010, 08:59 AM
  4. Visual Studio 2010 Integration
    By christian in forum Help Center
    Replies: 9
    Last Post: 06-23-2010, 10:29 AM
  5. Visual Studio AddIn installation fails
    By Synchro in forum Bug Reports
    Replies: 1
    Last Post: 08-18-2009, 09:25 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
  •