Re: Script close method creating problem for control

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 07/20/04


Date: Tue, 20 Jul 2004 11:01:59 -0400


"Steve Phils" <stevephils@yahoo.com> wrote in message
news:c4fe2718.0407200420.1fd91069@posting.google.com
> When a webpage with script close("top.window.close()") methods get
> called, my DHTML control wont close/unload. Only the top IE window ie
> parent window of control get closes.

This indicates a reference counting problem somewhere in your code. Are
you keeping any references on the hosting IE, by any chance? If you are,
you need to release all of them when SetClientSite(NULL) is called.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken