Hi guys,
I'm back from my vacation! :)
Before I left I had problems running visual-mingw when built as a Winelib app. This is a C++ app and needs the wrapper idea to work. In other words the main app is in a dll names 'visual-mingw-wrap.dll.so' (I've added the 'wrap' in the name to avoid potential confusion, and to make it easier to search for it).
The wrapper simply does a LoadLibrary for this DLL, and this LoadLibrary call fails. Here is the relevant part of a --debugmsg +module,+server
Any ideas?
.... trace:module:MODULE_InitDLL (0x40980000,PROCESS_ATTACH,0x1) - RETURN 1 trace:module:MODULE_DllProcessAttach (user32.dll,0x1) - END trace:module:MODULE_DllProcessAttach (visual-mingw.exe,0x1) - END trace:module:GetModuleFileNameW L"F:\dev\wine\visual-mingw\bin\visual-mingw.exe" trace:module:MODULE_GetLoadOrder looking for F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so trace:module:GetModuleFileNameW L"F:\dev\wine\visual-mingw\bin\visual-mingw.exe" trace:module:open_app_key searching 'F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so' in AppDefaults\visual-mingw.exe\DllOverrides 0009: open_key( parent=(nil), access=000f003f, name=L"Machine\Software\Wine\Wine\Config\AppDefaults" ) Open key ERROR 0009: open_key() = OBJECT_NAME_NOT_FOUND { hkey=(nil) } 0009: get_key_value( hkey=0x14, name=L"F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so" ) 0009: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} } 0009: get_key_value( hkey=0x14, name=L"*visual-mingw-wrap.dll.so" ) 0009: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} } trace:module:MODULE_GetLoadOrder got hardcoded path default "n,b" for "F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so" trace:module:load_dll Trying native dll 'F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so' 0009: create_file( access=80000000, inherit=0, sharing=00000001, create=3, attrs=00000000, drive_type=3, filename="/home/dimi/dev/wine/visual-mingw/bin/visual-mingw-wrap.dll.so" ) 0009: create_file() = 0 { handle=0x34 } trace:module:PE_LoadImage loading F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is correct, Wine finds the file correctly.
trace:module:PE_LoadImage Trying to create section...
Here, we're executing this (which fails):
TRACE( "Trying to create section...\n" ); if (NtCreateSection( &mapping, STANDARD_RIGHTS_REQUIRED | SECTION_QUERY | SECTION_MAP_READ, &attr, &lg_int, 0, SEC_IMAGE, hFile ) != STATUS_SUCCESS) return 0;
0009: create_mapping( size_high=0, size_low=0, protect=192, access=000f0005, inherit=0, file_handle=0x34, name=L"" ) 0009: create_mapping() = INVALID_FILE_FOR_SECTION { handle=(nil) } 0009: close_handle( handle=0x34 ) 0009: close_handle() = 0 { fd=-1 } warn:module:load_dll Loading of native DLL F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so failed (status -1073741595). warn:module:load_dll Failed to load module 'F:\dev\wine\visual-mingw\bin\visual-mingw-wrap.dll.so'; status=-1073741595 trace:module:LdrGetDllHandle 0 0 L"user32.dll" -> 0x40980000 trace:module:GetModuleHandle16 (USER) ....