COM Error -- Urgent help
Neil Hodgson
nyamatongwe+thunder at gmail.com
Tue Oct 17 09:25:18 EDT 2006
Teja:
> ie=win32com.client.Dispatch('internetexplorer.application')
> ie.Visible=1
>
> class GenericFunctions:
> def __init__(self):
> print "In Constructor of Generic Functions"
> def MyNavigate(self,dest):
> ie.Navigate(dest)
You are using an interface created on the main thread here.
>...
> d=pythoncom.CoGetInterfaceAndReleaseStream(s,
> pythoncom.IID_IDispatch)
> my_ie=win32com.client.Dispatch(d)
> #d.MyNavigate(dest)
> obj.MyNavigate(dest) # this is gving an error.
After all the trouble of marshalling the interface into this thread
you aren't using it. Pass my_ie to MyNavigate. I also had some errors
before changing from thread to threading.
Neil
More information about the Python-list
mailing list