Click to See Complete Forum and Search --> : Rebasing DLL fails, any rebase experts?


raven4281
June 26th, 2008, 08:31 AM
I have a program with several hundred dlls that get unloaded and loaded dynamically. It proved beneficial for initial loading time to rebase all our dlls. However, we have several that fail to rebase. I am using Win32 API call to ::ReBaseImage to rebase the dlls and the failed dlls return with GetLastError of 193 - "XXX.dll is not a valid win32 application." I also tried using editbin and that fails as well. Any ideas???

Igor Vartanov
June 26th, 2008, 08:49 AM
The first idea crossed my mind was: what if they indeed are not? ;)

raven4281
June 26th, 2008, 09:12 AM
Yea, I thought about that.. but how could a dll not be a Win32 application? Or what makes it not valid?

Igor Vartanov
June 27th, 2008, 03:55 AM
Who knows, I'm not a prophet, you know. How could I know anything about dlls I never saw? They might be Win16 or Win64 dlls, or anything else. :)

Is there any obstacle to investigate those strange dlls in detail? With dumpbin or something?

BTW. The second my yesterday thought was: is that so critical to rebase all the ones, with no exception? ;)