472,372 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,372 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 1682
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.