Re: ctypes - unloading implicitly loaded dlls

2008-07-28 Thread Nick Craig-Wood
pigmartian [EMAIL PROTECTED] wrote: I'm writing a program that uses functionality from two different sets of cdlls which reside in two different directories, call them 'libA.dll' and 'libB.dll'. Although I don't directly use it, both directories contain a dll with the same name,

Re: ctypes - unloading implicitly loaded dlls

2008-07-28 Thread pigmartian
Nick Craig-Wood wrote: You could try loading C explicitly with ctypes.LoadLibrary() before loading A, then you'll have a handle to unload it before you load B. I did think of that, but no luck. Guess the cdll doesn't look for a dll loaded already by python. I guess that does make sense.

ctypes - unloading implicitly loaded dlls

2008-07-27 Thread Scott Pigman
Here's what I'm struggling with (as best as I can understand it): I'm writing a program that uses functionality from two different sets of cdlls which reside in two different directories, call them 'libA.dll' and 'libB.dll'. Although I don't directly use it, both directories contain a dll with

ctypes - unloading implicitly loaded dlls

2008-07-27 Thread pigmartian
(my apologies if this is a repost, but it sure seems like the first attempt disappeared into the ether...) I'm writing a program that uses functionality from two different sets of cdlls which reside in two different directories, call them 'libA.dll' and 'libB.dll'. Although I don't directly