question about COM and ADO

Geoff Talvola gtalvola at NameConnector.com
Tue Feb 1 17:02:28 EST 2000


Bill Tutt wrote:

> > Unfortunately, this doesn't work either:
> >
> > >>> rs.SetActiveConnection(None)
> > Traceback (innermost last):
> >   File "<pyshell#60>", line 1, in ?
> >     rs.SetActiveConnection(None)
> >   File "E:\Program
> > Files\Python\win32com\gen_py\00000201-0000-0010-8000-00AA006D2
> > EA4x0x2x1.py",
> > line 1490, in SetActiveConnection
> >     return self._ApplyTypes_(0x3e9, 8, (24, 0), ((9, 1),),
> > 'SetActiveConnection', None, arg1)
> >   File "E:\Program
> > Files\Python\win32com\gen_py\00000201-0000-0010-8000-00AA006D2
> > EA4x0x2x1.py",
> > line 375, in _ApplyTypes_
> >     return
> > self._get_good_object_(apply(self._oleobj_.InvokeTypes, (dispid,
> > LCID, wFlags, retType, argTypes) + args), user, resultCLSID)
> > TypeError: None is not a invalid interface object in this context
>
> Ok, this is a tad bizzare...
> What version of the Win32 extensions are you running?
>
> Bill

AHA!  I was using version 125.  I installed version 128, and your
suggestion of rs.SetActiveConnection(None) works perfectly.

Thanks!

--


- Geoff Talvola
  Parlance Corporation
  gtalvola at NameConnector.com






More information about the Python-list mailing list