collada-dom
collada-dom copied to clipboard
Run-time error R6034
I finally built Collada-DOM successfully on Windows (Windows XP using Visual Studio 2008). The only caveat was that there is no "make" under Windows. I had to open the Visual Studio project and build it.
Now I create a new VC++ 2008 project, with the trivial program:
#include <iostream>
#include <dae.h>
#include <dom/domCOLLADA.h>
int main()
{
std::cout << "Hellow World" << std::endl;
DAE* dae = new DAE; // no issue without this line.
}
And I get R6034 runtime error. I google for that, which suggested an error about some manifest, but I checked the manifest settings which conform to what I found on the net.
The loading process produces the following output, which may or may not be useful:
'DOMtest.exe': Loaded 'C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\DOMtest\Debug\DOMtest.exe', Symbols loaded. 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll' 'DOMtest.exe': Loaded 'C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\DOMtest\Debug\collada-dom2.4-dp-vc90-mt.dll', Symbols loaded. 'DOMtest.exe': Loaded 'C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\DOMtest\Debug\boost_filesystem-vc90-mt-gd-1_53.dll' 'DOMtest.exe': Loaded 'C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\DOMtest\Debug\boost_system-vc90-mt-gd-1_53.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_ba947f24\msvcp90d.dll', Symbols loaded. 'DOMtest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_ba947f24\msvcr90d.dll', Symbols loaded. 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\secur32.dll' 'DOMtest.exe': Loaded 'C:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\DOMtest\Debug\libxml2-vc90-mt.dll', Binary was not built with debug information. 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll' 'DOMtest.exe': Loaded 'C:\Program Files\CMake 2.8\bin\msvcr90.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\user32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\imm32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\ole32.dll' 'DOMtest.exe': Loaded 'C:\WINDOWS\system32\version.dll' 'DOMtest.exe': Unloaded 'C:\WINDOWS\system32\version.dll' First-chance exception at 0x7c9773be in DOMtest.exe: 0xC0000142: DLL Initialization Failed. Unhandled exception at 0x7c9773be in DOMtest.exe: 0xC0000142: DLL Initialization Failed. The program '[3916] DOMtest.exe: Native' has exited with code 0 (0x0).
I also copied whatever DLL Visual Studio complained about at launch time. The app directory (set to be the current directory), contains:
/tmp/VMwareDnD/c0f75fe3/DOMtest.exe /tmp/VMwareDnD/c0f75fe3/DOMtest.ilk /tmp/VMwareDnD/c0f75fe3/DOMtest.pdb /tmp/VMwareDnD/c0f75fe3/collada-dom2.4-dp-vc90-mt.dll /tmp/VMwareDnD/c0f75fe3/boost_filesystem-vc90-mt-gd-1_53.dll /tmp/VMwareDnD/c0f75fe3/boost_system-vc90-mt-gd-1_53.dll /tmp/VMwareDnD/c0f75fe3/libxml2-vc90-mt.dll
Perhaps I did something stupid which could explain that. I am a Windows noob.
Thanks if you have an idea.