Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16801 > unrolled thread
| Started by | Mark Hammond <skippy.hammond@gmail.com> |
|---|---|
| First post | 2011-12-08 15:46 +1100 |
| Last post | 2011-12-08 15:46 +1100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Losing com pointer Mark Hammond <skippy.hammond@gmail.com> - 2011-12-08 15:46 +1100
| From | Mark Hammond <skippy.hammond@gmail.com> |
|---|---|
| Date | 2011-12-08 15:46 +1100 |
| Subject | Re: Losing com pointer |
| Message-ID | <mailman.3391.1323319646.27778.python-list@python.org> |
On 7/12/2011 7:22 PM, Matteo Boscolo wrote: > Hi all, > I need some help to a com problem.. > > I got this class: > > class foo(object): > def setComObject(comObject): > self.comO=comObject #This is a com object from a cad application > > def showForm(self) > # use the self.comO to read some information from the cad application > # Show the pyqt form as child of cad application > # do somthing with the form > # do somthing with the self.comO <----- Here if pass some time I'm not > able to call any method to the com object What are the symptoms of that? ie, what error do you get? I suspect the remote process is going away - it almost certainly has nothing to do with Python itself deciding to make the object go away. Mark > > a=foo() > o="get istance of a cad application via com" > a.setComObject(o) > a.showForm() #<---- here if pass some time I'm not able to call any > method to the com object > > but I I' re call the > a.setComObject(o) #Faster and I take less the 30 seconds on the form > object it works well > > It seems a problem of the garbage collector .. but I'm not sure how to > debug it .. > > any help is really appreciated.. it's the last dangerous bug in our > application ... > > Regards, > Matteo
Back to top | Article view | comp.lang.python
csiph-web