Home Help Center

C++ Demos Compile, But Cannot Run

tjs84tjs84 Member Tom SzumowskiOrganization: Lockheed MartinProject: Distributed Real-Time Sensor Data Fusion
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\icetest.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.

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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
  • tjs84tjs84 Member Tom SzumowskiOrganization: Lockheed MartinProject: Distributed Real-Time Sensor Data Fusion
    Thank you! That fixed it!
Sign In or Register to comment.