By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,930 Members | 2,018 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,930 IT Pros & Developers. It's quick & easy.

Restart a Python COM Server

P: n/a
Hello all.
I am desperately in need for you help guys. Here is the story:
1- I have created a small simple COM serve with python (along the lines
read in Win32 Programming with python).
2- If I start the server and call a function from VBE everything works
fine
3- I then want to modify the function in the python COM server
4- I unregister the server and register it again hoping the changes
will take effect
5- I make call to the function from VBE but the it seems that VBE
doesn't reload/refresh the reference to the server.
So I do I get VBE to point to the last version of the server? If I
close VBE and reload it then it works. But I think there is probably a
smarter way. Please, tell me there is!
Few posts deal with the issue, but so far I couldn't find anything
about it...

Thanx all
M.E

Oct 18 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
MC
Hi!

It is the normal behavior of COM.

Note that, Python being dynamic, you can modify Python script, OF THE
INTERIOR, during execution.

--
@-salutations

Michel Claveau
Oct 18 '06 #2

P: n/a
OK,
well thank you for your help (merci pour ton aide!)
M.E.
MC wrote:
Hi!

It is the normal behavior of COM.

Note that, Python being dynamic, you can modify Python script, OF THE
INTERIOR, during execution.

--
@-salutations

Michel Claveau
Oct 18 '06 #3

P: n/a

m.******@gmail.com wrote:
Hello all.
I am desperately in need for you help guys. Here is the story:
1- I have created a small simple COM serve with python (along the lines
read in Win32 Programming with python).
2- If I start the server and call a function from VBE everything works
fine
3- I then want to modify the function in the python COM server
4- I unregister the server and register it again hoping the changes
will take effect
5- I make call to the function from VBE but the it seems that VBE
doesn't reload/refresh the reference to the server.
So I do I get VBE to point to the last version of the server? If I
close VBE and reload it then it works. But I think there is probably a
smarter way. Please, tell me there is!
Few posts deal with the issue, but so far I couldn't find anything
about it...

Thanx all
M.E
I don't know how well this works for python-based COM components, but
the general fix is to setup a Component Services package. This creates
a proxy component which can be independently killed from the Component
Services management console.

Oct 18 '06 #4

P: n/a
Alright.
I kind of get the idea. But how do I do that? Anyway, it is more for
development reason than anything else. It's not that big of a deal. But
still it would be nice to have a solution...

Thanx again
M.E.

ol*****@verizon.net wrote:
m.******@gmail.com wrote:
Hello all.
I am desperately in need for you help guys. Here is the story:
1- I have created a small simple COM serve with python (along the lines
read in Win32 Programming with python).
2- If I start the server and call a function from VBE everything works
fine
3- I then want to modify the function in the python COM server
4- I unregister the server and register it again hoping the changes
will take effect
5- I make call to the function from VBE but the it seems that VBE
doesn't reload/refresh the reference to the server.
So I do I get VBE to point to the last version of the server? If I
close VBE and reload it then it works. But I think there is probably a
smarter way. Please, tell me there is!
Few posts deal with the issue, but so far I couldn't find anything
about it...

Thanx all
M.E

I don't know how well this works for python-based COM components, but
the general fix is to setup a Component Services package. This creates
a proxy component which can be independently killed from the Component
Services management console.
Oct 19 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.