Log in

View Full Version : f*cked up MFC


TheBlasphemer
May 9th, 2004, 10:21
Hey,

I'm writing an add-on to msn messenger,
and because i wanna do some asm patches, I'm using Ollydbg for those.
However, Ollydbg always hangs on MFC42.dll.
Is there any way to let ollydbg ignore mfc42.dll and just move on without hanging on me?

Teerayoot
May 9th, 2004, 10:54
yeah, if application refer to MFC42.dll module it's take too long for loading module,but not hang for me .Just wait for loading maybe 5 minute or more .

hmm,if not wait too long for this will be good.

focht
May 9th, 2004, 11:39
Greetings,

Ollydbg always hangs on MFC42.dll.

could you please be more specific?

I guess you are debugging messenger app which loads some plugin dlls?
Though i've never worked with that msn stuff and dont know about its plugin architecture... lemme give following hints.

Remove each plugin.
Run the app in ollydbg.
Does it load completely?
Add each plugin again, one by one and do a test-run with ollydbg.

Try to isolate the plugin which causes mfc42.dll to be loaded.
(of course you could use some tool like dependency viewer or others too to get the plugins with mfc dependency).

When it hangs - does it hang the debugger completely or can you "break" the loading process.
If its breakable, post the call stack of main thread here.
(it might be a dreaded loader lock issue...)

Regards,

A. Focht