Compiler: Microsoft Visual Studio 2008 Professional Edition with SP1
wxWidgets 2.8.11
I have migrated my vc ++ application from wxWindows 2.4.1 to wxWidgets 2.8.11 .
The application was primarily developed using vc 6.0 and wxWindows 2.4.1 and working without issues on Windows XP..
After that the first migration was for vc 6.0 to vc 9.0 which was not a stable one with so many memory leaks.
Then we have decided to migrate to wxWidgets 2.8.11 which is a stable version two months back..
While migrating from wxWindows 2.4.1 to wxWidgets 2.8.11 i have used wxWidgets 2.4 compatible preprocessor flags in the setup.h file for avoiding the compile time and linking errors..
For few floating frame related errors ,like OnOK,OnCancel and all i have used the code according to wxwidgets change log.txt.
Finally i was able to compile and link my application correctly without any errors with wxWidgets 2.8.11 for both debug and release version..
Now finally the application crashes immediately after starting or cannot be initialised properly .
For debug version :The Proram cannot start because MSVCR90.dll is missing from your computer.Try installing the program to fix this problem.
After providing the MSVCR90.dll in both the application folder or in windows\system32 folder it gives the below runtime error..
It is giving a runtime error R6034.A application has made an attempt to load the C runtime library incorrectly.
After searching in the net a lot about the error i found about building the application with correct menifest..
In my system Microsoft visual Studio 2008 SP1 is installed so in C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT folder the menifest version is version="9.0.30729.1"
All my dlls both wxwidgets and VC++ dlls are build with the above menifest version ="9.0.30729.1" and i have defined in project preprocessor definition setting _BIND_TO_CURRENT_VCLIBS_VERSION=1;
But as my system is having windows 7 OS installed so by default in C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a
folder the c runtime libraries msvcm90.dll,msvcp90.dll,msvcr90.dll are present and the menifest version as shown from the directory is a higher version i,e "9.0.30729.4926"
When i checked the application .exe in the depends.exe ,it was loading the C Run time libs from
C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT and from C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a
as well and hence a mismatch in the C Run time libraries.i have attached the log from depend.exe..
Kindly provide me support and help to get rid from this error which is hunting us now for months.Starting profile on 11.10.2010 at 00:03:32
Operating System: Microsoft Windows NT/2000/XP/2003/Vista based Media Center (32-bit), version 6.01.7600
Program Executable: d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\TROLLEYE.EXE
Program Arguments:
Starting Directory: D:\TrollEye\Requirements on 2 - feb - 2010\TrollEye 1.1 Beta\Segregated\TrollEye\Debug_Watch\
Search Path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\TrollEye\wxWidgets-2.8.11\lib\vc_dll
Options Selected:
Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable.
Log DllMain calls for process attach and process detach messages.
Log DllMain calls for all other messages, including thread attach and thread detach.
Hook the process to gather more detailed dependency information.
Log LoadLibrary function calls.
Log GetProcAddress function calls.
Log thread information.
Use simple thread numbers instead of actual thread IDs.
Log first chance exceptions.
Log debug output messages.
Use full paths when logging file names.
Automatically open and profile child processes.
--------------------------------------------------------------------------------
Started "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\TROLLEYE.EXE" (process 0xF34) at address 0x00400000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\NTDLL.DLL" at address 0x77670000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\KERNEL32.DLL" at address 0x75B90000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\KERNELBASE.DLL" at address 0x75910000 by thread 1. Successfully hooked module.
DllMain(0x75910000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system32\KERNELBASE.DLL" called by thread 1.
DllMain(0x75910000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system32\KERNELBASE.DLL" returned 1 (0x1) by thread 1.
DllMain(0x75B90000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system32\KERNEL32.DLL" called by thread 1.
DllMain(0x75B90000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system32\KERNEL32.DLL" returned 1 (0x1) by thread 1.
Injected "c:\users\trollhetta\downloads\depends22_x86\DEPENDS.DLL" at address 0x08370000 by thread 1.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\users\trollhetta\downloads\depends22_x86\DEPENDS.DLL" called by thread 1.
DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\users\trollhetta\downloads\depends22_x86\DEPENDS.DLL" returned 1 (0x1) by thread 1.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXMSW28D_CORE_VC_CUSTOM.DLL" at address 0x10000000 by thread 1. Successfully hooked module.
Loaded "c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\COMCTL32.DLL" at address 0x74860000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\MSVCRT.DLL" at address 0x77000000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\GDI32.DLL" at address 0x75C70000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\USER32.DLL" at address 0x76B10000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\LPK.DLL" at address 0x777E0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\USP10.DLL" at address 0x770D0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\SHLWAPI.DLL" at address 0x76D60000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\RPCRT4.DLL" at address 0x77170000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXBASE28D_VC_CUSTOM.DLL" at address 0x00870000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\ADVAPI32.DLL" at address 0x77800000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\SECHOST.DLL" at address 0x76DC0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\SHELL32.DLL" at address 0x75CC0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\OLE32.DLL" at address 0x77220000 by thread 1. Successfully hooked module.
Loaded "c:\windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\MSVCP90D.DLL" at address 0x62DC0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\MSVCR90D.DLL" at address 0x62C90000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\WINSPOOL.DRV" at address 0x6F8C0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\COMDLG32.DLL" at address 0x76DE0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\OLEAUT32.DLL" at address 0x77580000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXMSW28D_XRC_VC_CUSTOM.DLL" at address 0x00A70000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXMSW28D_HTML_VC_CUSTOM.DLL" at address 0x00B30000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXMSW28D_ADV_VC_CUSTOM.DLL" at address 0x00BF0000 by thread 1. Successfully hooked module.
Loaded "c:\windows\system32\WINMM.DLL" at address 0x736A0000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXBASE28D_XML_VC_CUSTOM.DLL" at address 0x00210000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\MAINAPPD.DLL" at address 0x00D00000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\wxwidgets-2.8.11\lib\vc_dll\WXMSW28D_FL_VC_CUSTOM.DLL" at address 0x00380000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\TROLLEYEDLLGENERALD.DLL" at address 0x637D0000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\TROLLEYEDLLAPID.DLL" at address 0x010B0000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\TROLLEYEDLLLISTENERSD.DLL" at address 0x010F0000 by thread 1. Successfully hooked module.
Loaded "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\WATERMARKD.DLL" at address 0x01120000 by thread 1. Successfully hooked module.
Exited "d:\trolleye\requirements on 2 - feb - 2010\trolleye 1.1 beta\segregated\trolleye\debug_watch\TROLLEYE.EXE" (process 0xF34) with code -1073741515 (0xC0000135) by thread 1.
Thanks in Advance..in hope for receiving a quick reply,clue or solution..
Regards
Itishree
Code: Select all