[great-users] Great from source, and GME 5.9.21
Harmon Nine
hnine at isis.vanderbilt.edu
Thu Mar 9 12:16:07 CST 2006
Thanks for Dependency Walker. It is *great*.
In a command prompt, the command 'regsvr32 "Great Master
Interpreter.dll"' yields a pop-up with the following message:
DllRegisterServer in "Great Master Interpreter.dll" failed.
Return code was: 0xc0000005
I profiled GME with Dependency Walker. It rendered the following output
when it tried to load the "Great Master Interpreter.dll". Note that GME
successfully "hooks" the dll, but the DLL_PROCESS_ATTACH call to it does
not return. Instead, there's a NotifyWinEvent.
-----------LoadLibraryA("C:\Documents and Settings\hnine\My
Documents\GReAT\bin\GReAT Master Interpreter.dll") called from
"MGAUTIL.DLL" at address 0x60809E6B.
Loaded "GREAT MASTER INTERPRETER.DLL" at address 0x05250000.
Successfully hooked module.
Loaded "UDMDLL.DLL" at address 0x052C0000. Successfully hooked module.
Loaded "XERCES-C_2_5_0.DLL" at address 0x054D0000. Successfully hooked
module.
DllMain(0x054D0000, DLL_PROCESS_ATTACH, 0x00000000) in
"XERCES-C_2_5_0.DLL" called.
DllMain(0x054D0000, DLL_PROCESS_ATTACH, 0x00000000) in
"XERCES-C_2_5_0.DLL" returned 1 (0x1).
DllMain(0x052C0000, DLL_PROCESS_ATTACH, 0x00000000) in "UDMDLL.DLL"
called.
DllMain(0x052C0000, DLL_PROCESS_ATTACH, 0x00000000) in "UDMDLL.DLL"
returned 1 (0x1).
DllMain(0x05250000, DLL_PROCESS_ATTACH, 0x00000000) in "GREAT MASTER
INTERPRETER.DLL" called.
GetProcAddress(0x77D40000 [USER32.DLL], "NotifyWinEvent") called from
"MFC71.DLL" at address 0x7C149DE3 and returned 0x77D4BFF3.
DllMain(0x05250000, DLL_PROCESS_ATTACH, 0x00000000) in "GREAT MASTER
INTERPRETER.DLL" returned 1 (0x1).
LoadLibraryA("C:\Documents and Settings\hnine\My
Documents\GReAT\bin\GReAT Master Interpreter.dll") returned 0x05250000.
GetProcAddress(0x05250000 [GREAT MASTER INTERPRETER.DLL],
"DllRegisterServer") called from "MGAUTIL.DLL" at address 0x60809E99 and
returned 0x052512F0.
GetProcAddress(0x774E0000 [OLE32.DLL], "StringFromCLSID") called from
"MFC71.DLL" at address 0x7C172E20 and returned 0x7750D5D0.
GetProcAddress(0x774E0000 [OLE32.DLL], "CoTaskMemAlloc") called from
"MFC71.DLL" at address 0x7C172E20 and returned 0x774FD048.
GetProcAddress(0x774E0000 [OLE32.DLL], "CoTaskMemFree") called from
"MFC71.DLL" at address 0x7C172E20 and returned 0x774FD02C.
GetProcAddress(0x77DD0000 [ADVAPI32.DLL], "RegQueryValueA") called from
"MFC71.DLL" at address 0x7C172E20 and returned 0x77DFCC10.
GetProcAddress(0x77DD0000 [ADVAPI32.DLL], "RegSetValueA") called from
"MFC71.DLL" at address 0x7C172E20 and returned 0x77DE6F49.
GetProcAddress(0x74720000 [MSCTF.DLL], "TF_DllDetachInOther") called
from "MSCTFIME.IME" at address 0x755D9A75 and returned 0x7472EE30.
LoadLibraryA("user32.dll") called from "MSVCR71.DLL" at address
0x7C34C14E.
LoadLibraryA("user32.dll") returned 0x77D40000.
GetProcAddress(0x77D40000 [USER32.DLL], "MessageBoxA") called from
"MSVCR71.DLL" at address 0x7C34C166 and returned 0x77D804EA.
GetProcAddress(0x77D40000 [USER32.DLL], "GetActiveWindow") called from
"MSVCR71.DLL" at address 0x7C34C177 and returned 0x77D4D658.
GetProcAddress(0x77D40000 [USER32.DLL], "GetLastActivePopup") called
from "MSVCR71.DLL" at address 0x7C34C184 and returned 0x77D6154B.
GetProcAddress(0x77D40000 [USER32.DLL], "GetUserObjectInformationA")
called from "MSVCR71.DLL" at address 0x7C34C19A and returned 0x77D612D8.
GetProcAddress(0x77D40000 [USER32.DLL], "GetProcessWindowStation")
called from "MSVCR71.DLL" at address 0x7C34C1AB and returned 0x77D49195.
-----------
After this, it starts unloading all of its dlls (by calling
DLL_PROCESS_DETACH) ...
Before this, Dependency Walker finds the following warnings/errors.
Some (most?) look to be innocuous. Some errors are not shown, as the
Dependency Walker docs stated that they could be safely ignored.
Could any of these be the cause of the problem?
1.
-----------
DllMain(0x37000000, DLL_PROCESS_ATTACH, 0x00000000) in "ENTAPI.DLL"
returned 0 (0x0).
-----------
2.
-----------
LoadLibraryA("C:\Program Files\GME\MgaUtilENU.dll") returned NULL.
Error: The specified module could not be found (126).
(repeated) ...
LoadLibraryA("C:\Program Files\GME\MgaUtilLOC.dll") returned NULL.
Error: The specified module could not be found (126).
-----------
3.
-----------
LoadLibraryA("C:\Program Files\GME\ConstraintManagerENU.dll") returned
NULL. Error: The specified module could not be found (126).
(repeated) ...
LoadLibraryA("C:\Program Files\GME\ConstraintManagerLOC.dll") returned
NULL. Error: The specified module could not be found (126).
-----------
4.
-----------
GetProcAddress(0x755C0000 [MSCTFIME.IME], "ImeGetImeMenuItems") called
from "IMM32.DLL" at address 0x76397374 and returned NULL. Error: The
specified procedure could not be found (127).
-----------
5.
-----------
GetProcAddress(0x00400000 [GME.EXE], "_TlsGetValueSQLServer at 4") called
from "MSXML3.DLL" at address 0x749A8877 and returned NULL. Error: The
specified procedure could not be found (127).
GetProcAddress(0x00400000 [GME.EXE], "_TlsSetValueSQLServer at 8") called
from "MSXML3.DLL" at address 0x749A8885 and returned NULL. Error: The
specified procedure could not be found (127).
GetProcAddress(0x00400000 [GME.EXE], "_TlsSetValueExSQLServer at 12")
called from "MSXML3.DLL" at address 0x749A8893 and returned NULL. Error:
The specified procedure could not be found (127).
-----------
6. These errors happened several times. They're occur from PDFSHELL.DLL
as well as XALANMESSAGES_1_7_0.DLL and MSVCR71.DLL
-----------
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsAlloc") called from
"PDFSHELL.DLL" at address 0x05259AC2 and returned NULL. Error: The
specified procedure could not be found (127).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsGetValue") called from
"PDFSHELL.DLL" at address 0x05259ACF and returned NULL. Error: The
specified procedure could not be found (127).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsSetValue") called from
"PDFSHELL.DLL" at address 0x05259ADC and returned NULL. Error: The
specified procedure could not be found (127).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsFree") called from
"PDFSHELL.DLL" at address 0x05259AE9 and returned NULL. Error: The
specified procedure could not be found (127).
-----------
Thanks for any info. :)
-- Harmon
-----Original Message-----
From: great-users-bounces at list.isis.vanderbilt.edu
[mailto:great-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
Daniel Balasubramanian
Sent: Wednesday, March 08, 2006 8:21 PM
To: great-users
Subject: RE: [great-users] Great from source, and GME 5.9.21
Hi Harmon,
This probably means that the component (the .dll) is missing one of its
dependencies (.dll's that it loads into its address space when it runs).
To verify this, download Dependency Walker from:
http://www.dependencywalker.com/depends21_x86.zip
And open the "Great Master Interpreter.dll" with it. It will tell you
if any of the necessary files it needs are not present.
Another way to verify this is to open a command prompt, and go to the
location of the Great Master Interpreter, and type in the command:
regsvr32 "Great Master Interpreter.dll"
If it returns saying something like, "Registration Failed: The specified
module could not be found." then that is the problem (although using
dependency walker will tell you exactly which missing dll is causing the
problem).
Hope this helps,
Daniel
-----Original Message-----
From: great-users-bounces at list.isis.vanderbilt.edu on behalf of Harmon
Nine
Sent: Wed 3/8/2006 10:22 AM
To: great-users
Cc:
Subject: [great-users] Great from source, and GME 5.9.21
When trying to register a component (in particular the "GReAT Master
Interpreter") in GME from a locally compiled GReAT (source from VSS,
Master interpreter dll from {GReAT Source Dir}\bin), GME 5.11.18 raises
an exception and will not register, and GME 5.9.21 crashes.
Is there a fix for this?
Thanks.
-- Harmon
_______________________________________________
great-users mailing list
great-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/great-users
More information about the great-users
mailing list