Unloading COM objects?
Martin Bertolino
tincho.NO at SPAM.crl.com
Sun Oct 3 16:46:37 EDT 1999
The COM runtime exposes a function called 'CoFreeUnusedLibraries'. The
purpuse of the function is to check with the currently loaded modules if the
can be unloaded by calling the can 'CanUnloadNow' function. You can try
exporting and calling this function from pythin somehow.
Hope this helps
Martin
Robert <soundhack at geocities.com> wrote in message
news:7su90f$hm2 at senator-bedfellow.MIT.EDU...
> Hi,
> I've been fooling around with ATL and making COM automation objects to be
> scripted by python. However, each time I rebuild the COM dll, I have to
quit
> python
> because the file is being used (after a win32com.client.Dispatch call). Is
> there
> any way of unloading the COM object in python? I tried
> o=win32com.client.Dispatch("test.object"),
> o=None, with no success.
>
> Thanks
> Robert
>
>
>
More information about the Python-list
mailing list