homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author plynch76
Recipients plynch76
Date 2012年04月16日.13:13:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADde8OeCnVqzr3SHiOE+Wp0RDARa-G6FBVUBxzkWYnjTjLtkeg@mail.gmail.com>
In-reply-to <1334581773.77.0.209505875468.issue14597@psf.upfronthosting.co.za>
Content
I should mention also, that this is mostly an issue for me on Win7 x64. It
does behave 'slightly' better on WinXP x86.
(I have the 64-bit version of python installed on Win7 x64 & the 32-bit
version installed on WinXP)
thanks,
Pat.
On 16 April 2012 14:09, Pat Lynch <report@bugs.python.org> wrote:
>
> New submission from Pat Lynch <plynch76@gmail.com>:
>
> If I load a dll in ctypes, then delete that loaded DLL instance, the DLL
> is not unloaded until the script finishes and exits.
>
> I'm trying to write some unit tests in python to exercise that DLL where
> each test case loads a DLL, does some work, then unloads the DLL.
> Unfortunately the DLL only gets unloaded when the unit tests finish.
>
> I've tried forcing the garbage collector to run to get the DLL to unload.
> It did nothing...
>
> # load the DLL
> parser_dll = CDLL(dllpath)
>
> # do some work here
>
> # 'unload' the dll (or as close as I can get it to it)
> if (parser_dll):
> del parser_dll
>
> ----------
> components: ctypes
> messages: 158433
> nosy: plynch76
> priority: normal
> severity: normal
> status: open
> title: Cannot unload dll in ctypes until script exits
> type: enhancement
> versions: Python 2.7
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue14597>
> _______________________________________
>
History
Date User Action Args
2012年04月16日 13:13:51plynch76setrecipients: + plynch76
2012年04月16日 13:13:51plynch76linkissue14597 messages
2012年04月16日 13:13:50plynch76create

AltStyle によって変換されたページ (->オリジナル) /