Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16775

Losing com pointer

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!amsnews11.chello.com!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <matteo.boscolo@boscolini.eu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'bug': 0.02; 'debug': 0.03; 'garbage': 0.09; 'def': 0.13; '#this': 0.16; 'class:': 0.16; 'foo(object):': 0.16; 'from:addr:boscolini.eu': 0.16; 'from:addr:matteo.boscolo': 0.16; 'from:name:matteo boscolo': 0.16; 'matteo': 0.16; 'seems': 0.20; 'seconds': 0.21; 'charset:iso-8859-15': 0.26; "i'm": 0.26; 'all,': 0.28; 'pass': 0.29; 'problem': 0.29; 'class': 0.29; 'header:User-Agent:1': 0.33; 'object': 0.33; 'to:addr:python-list': 0.34; '...': 0.36; 'but': 0.37; 'some': 0.38; 'help': 0.39; "it's": 0.40; 'to:addr:python.org': 0.40; 'header:Received:6': 0.61; 'our': 0.64; 'dangerous': 0.64; 'here': 0.65; 'received:62.149': 0.67; 'received:aruba.it': 0.67; 'show': 0.67; 'received:62': 0.70; 'received:62.149.158': 0.84; 'subject:com': 0.84
Date Wed, 07 Dec 2011 09:22:44 +0100
From Matteo Boscolo <matteo.boscolo@boscolini.eu>
Organization OmniaSolutions
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version 1.0
To python-list@python.org
Subject Losing com pointer
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Spam-Rating smtplq01.aruba.it 1.6.2 0/1000/N
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3374.1323246182.27778.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1323246182 news.xs4all.nl 6938 [2001:888:2000:d::a6]:53091
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:16775

Show key headers only | View raw


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

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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Losing com pointer Matteo Boscolo <matteo.boscolo@boscolini.eu> - 2011-12-07 09:22 +0100

csiph-web