Results 1 to 3 of 3

Thread: C++ Demos Compile, But Cannot Run

  1. #1
    tjs84 is offline Registered User
    Name: Tom Szumowski
    Organization: Lockheed Martin
    Project: Distributed Real-Time Sensor Data Fusion
    Join Date
    Apr 2011
    Posts
    3

    C++ Demos Compile, But Cannot Run

    I am using Visual C++ 2010 Express and I am trying to run some of the included C++ demos in the Ice 3.4.1 install. I was able to compile using nmake as instructed in the readme. But when I try to run them, I get a dialog prompt with an error saying,

    The application failed to initialize properly (0xc0150002). Click on OK to terminate the application.
    So for debugging I tried to manually create my own VC++ 2010 project with the "latency" demo code. It includes the Ice directories, iceutild.lib and iced.lib. It compiles fine. But when I debug the executable, I get the same dialog prompt as above, with this output in the console:

    icetest.exe': Loaded 'C:\tszumows\workspace\icetest\icetest\Debug\icete st.exe', Symbols loaded.
    'icetest.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
    'icetest.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
    'icetest.exe': Loaded 'C:\Program Files\ZeroC\Ice-3.4.1\bin\iceutil34d.dll', Symbols loaded.
    LDR: LdrpWalkImportDescriptor() failed to probe C:\Program Files\ZeroC\Ice-3.4.1\bin\iceutil34d.dll for its manifest, ntstatus 0xc0150002
    Debugger:: An unhandled non-continuable exception was thrown during process load
    The program '[3496] icetest.exe: Native' has exited with code -1072365566 (0xc0150002).

    Just for completeness, I tried the same in Release mode (using iceutil.lib and ice.lib), and I get the same error, but a different debug console output (if I attempt to debug which it isn't built for)

    First-chance exception at 0x7c812afb in icetest.exe: Microsoft C++ exception: Ice::PluginInitializationException at memory location 0x0012f248..
    First-chance exception at 0x7c812afb in icetest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812afb in icetest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    First-chance exception at 0x7c812afb in icetest.exe: Microsoft C++ exception: `anonymous namespace'::ThreadPoolDestroyedException at memory location 0x00e7fa14..
    The thread 'Win32 Thread' (0x1a04) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x1748) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x11fc) has exited with code 0 (0x0).
    First-chance exception at 0x7c812afb in icetest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    The program '[1408] icetest.exe: Native' has exited with code 1 (0x1).
    Any ideas why this may be happening? It's my first time trying to run Ice in C++. I've been successful with Java in the past.

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

    Your post fortunately includes enough information to spot the issue ... you need to adjust your PATH to use the DLLs in bin\vc100 instead of the DLLs in bin.

    Ice34.dll, Ice34d.dll in the main bin directory were built with VS2008; you want to use the DLLs built with VS2010 in bin\vc100 (bin\vc100\x64 for 64 bit DLLs).

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    tjs84 is offline Registered User
    Name: Tom Szumowski
    Organization: Lockheed Martin
    Project: Distributed Real-Time Sensor Data Fusion
    Join Date
    Apr 2011
    Posts
    3
    Thank you! That fixed it!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. No demos in RPM distribution of 3.1.1
    By mefoster in forum Comments
    Replies: 1
    Last Post: 10-16-2006, 11:30 AM
  2. Confused with IcePack demos
    By Yunqiao Yin in forum Help Center
    Replies: 1
    Last Post: 09-04-2005, 07:58 PM
  3. ICE Demos' server run failure
    By RyanFogarty in forum Help Center
    Replies: 7
    Last Post: 10-31-2004, 03:19 PM
  4. Demos on ICE
    By shantanu_k06 in forum Comments
    Replies: 4
    Last Post: 05-04-2004, 01:06 PM
  5. IcePack tutorials/ demos
    By stephan in forum Help Center
    Replies: 5
    Last Post: 10-13-2003, 08:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •