Author plynch76
Recipients brian.curtin, meador.inge, plynch76, r.david.murray, tim.golden
Date 2012-04-16.13:44:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADde8OeBbXep6+FCDmANKADoBUaTg5qeh6VROwRR0_0WyVJ43w@mail.gmail.com>
In-reply-to <1334583006.05.0.521688586738.issue14597@psf.upfronthosting.co.za>
Content
thanks for the very quick response.

Since LoadLibrary is called in the constructor, why can't FreeLibrary be
called in the destructor?  or at least expose a function to unload that
calls FreeLibrary?

http://msdn.microsoft.com/en-us/library/windows/desktop/ms683152%28v=vs.85%29.aspx

thanks again,
Pat.

On 16 April 2012 14:30, R. David Murray <report@bugs.python.org> wrote:

>
> R. David Murray <rdmurray@bitdance.com> added the comment:
>
> In general it is difficult to impossible to get Python2 to unload modules
> before the interpreter shuts down.  See issue 9072.  I'm not savvy enough
> with the C stuff to know if the fact that you loaded it via ctypes changes
> anything, but I doubt it.
>
> Note that the implication of that issue is that if you could move to
> Python3 there might be a way to do it, but that would indeed be an
> enhancement as there is no direct support for it yet.
>
> ----------
> nosy: +r.david.murray
> versions: +Python 3.3 -Python 2.7
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue14597>
> _______________________________________
>
History
Date User Action Args
2012-04-16 13:44:26plynch76setrecipients: + plynch76, tim.golden, r.david.murray, brian.curtin, meador.inge
2012-04-16 13:44:25plynch76linkissue14597 messages
2012-04-16 13:44:25plynch76create