Losing com pointer

M

Matteo Boscolo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,060
Latest member
BuyKetozenseACV

Latest Threads

Top