"Runar Jordahl" <
[hidden email]> wrote in message
news:41f531e3$
[hidden email]...
> Seems like the two last statements in the code below will correct my
> problem.
>
>
>
> site :=AXControlSite progId: 'MP3PLAY.Mp3playCtrl.1'.
>
> mp3Control := site controlDispatch.
>
> mp3Control aboutBox.
>
> site close.
>
> site := nil.
>
Yes. OCXs (Active-X controls with visuals*) are Windows and need to be
closed explicitly. In Dolphin this amounts to closing (or destroying) the
control site Window.
Regards
Blair
*Quite a lot of Active-X controls that should be non-visual are implemented
as OCXs even though they have no GUI at runtime. This is often done so that
the component can be placed in GUI painter toolboxes (e.g. in VB). In order
to avoid having to explicitly close the site you could go with the flow and
drop a site on your view. If you switch the control out of design-time mode,
it should not be visible at runtime, or you can hide the site. If the site
is hosted in some shell window, directly or indirectly, then it will be
closed when the window is closed.