Re: Dependency Walker & my application
- From: Alf C Stockton <alf stockton co za>
- To: Tor Lillqvist <tml iki fi>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Dependency Walker & my application
- Date: Fri, 10 Jun 2005 13:08:02 +0200 (SAST)
On Fri, 10 Jun 2005, Tor Lillqvist wrote:
I have searched through my code for g_module_open and gtk_rc_reset_styles and
found nothing there so I searched the dlls and found g_module_open occurs in
libgdk_pixbuf-2.0-0.dll, libgmodule-2.0-0.dll and libpango-1.0-0.dll.
Alf C Stockton writes:
> When profiling my application in Dependency Walker 2.1 on Windows I get the
> following lines appearing in red.
> Is this a problem with my code ?
> GetProcAddress(0x7C900000 [NTDLL.DLL], "gtk_rc_reset_styles")
> GetProcAddress(0x7C800000 [KERNEL32.DLL], "gtk_rc_reset_styles")
> GetProcAddress(0x08370000 [DEPENDS.DLL], "gtk_rc_reset_styles")
Seems that your code (or libglade, or something?) has called
g_module_open(NULL) to get a handle to thw whole of the running
process, and now looks for gtk_rc_reset_styles in it. This means
looking in all loaded modules (DLLs). This isn't necessarily any
problem as such, unless it keeps doing this repeatedly, which might
cause some slowness. On the other hand, I don't understand why the
code needs to look up gtk_rc_reset_styles dynamically? It's in GTK+,
so just plain linking with GTK+ at build time should be enough?
Now what ?
Alf Stockton www.stockton.co.za
Having to wander through a maze of ropes at an airport or bank
even when you are the only person in line.
-- Rich Hall, "Sniglets"
] [Thread Prev