Message158433
| Author |
plynch76 |
| Recipients |
plynch76 |
| Date |
2012年04月16日.13:09:32 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334581773.77.0.209505875468.issue14597@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月16日 13:09:33 | plynch76 | set | recipients:
+ plynch76 |
| 2012年04月16日 13:09:33 | plynch76 | set | messageid: <1334581773.77.0.209505875468.issue14597@psf.upfronthosting.co.za> |
| 2012年04月16日 13:09:33 | plynch76 | link | issue14597 messages |
| 2012年04月16日 13:09:32 | plynch76 | create |
|