PythonWin -- COM server won't change???

U-CDK_CHARLES\Charles "Charles Krug" at cdksystems.com
Sat Oct 30 10:37:41 EDT 2004


On Sat, 30 Oct 2004 03:04:27 -0400, Steve Holden <steve at holdenweb.com>
wrote:
> U-CDK_CHARLES\Charles wrote:
>
>> List:
>> 
>> I made a small change to a COM server under PythonWin.
>> 
>> I unregistered, then reregistered the server.
>> 
>> But the old version is still being invoked.
>> 
>> Did I miss a step:
>> 
>> Code follows.
>> 
> Well, for example, if it's currently mapped into a process you'll have 
> to somehow get that process to reload() the module. I can't remember 
> offhand what the default is, btu I know that the only way I can pick up 
> a re-registered object under IIS is to have a web page import and then 
> reload() the module that the COM server is defined in. Kinda yucky, but 
> it works, don't know whether it'll help you.
>

AH!! . . Exactly!!

I was invoking it from a VB program, and changed it while my program was
open in the IDE.

All is well.

Thanx




More information about the Python-list mailing list