473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Restart a Python COM Server

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
4 1745
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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
0
by: nate | last post by:
>>> import findertools >>> findertools.restart() Traceback (most recent call last): File "<stdin>", line 1, in ? File...
2
by: Astan Chee | last post by:
Hi, I have a python module that keeps on crashing with various windows errors (not BSOD but the less lethal windows XP popup ones). Now these are intentional and rather sporadic so I cant really...
0
by: Neal Becker | last post by:
Hi numeric processing fans. I'm pleased to report that you can now have convenient checkpoint/restart, at least if you are running fedora linux. Example: python -i blcr_mod.py <<< this will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.