#371 ADODBAPI error

closed-fixed
None
5
2009-06-05
2008-07-09
No

CoInitialize needs to be called before creating an ADO connection via Dispatch:

Previous:
Line 248:
conn=Dispatch('ADODB.Connection')
if win32:
pythoncom.CoInitialize() #v2.1 Paj

Suggested:
if win32:
pythoncom.CoInitialize()
conn=Dispatch('ADODB.Connection')

Discussion

  • Vernon Cole

    Vernon Cole - 2008-08-01
    • assigned_to: nobody --> kf7xm
    • status: open --> open-accepted
     
  • Vernon Cole

    Vernon Cole - 2008-08-06

    Logged In: YES
    user_id=855661
    Originator: NO

    Perfect Timing. This bug (and patch) submitted just before the resulting error appeared on my system. Suggested fix works great! Thank you, Adam.
    --
    Change applied to CVS

     
  • Vernon Cole

    Vernon Cole - 2008-08-06
    • status: open-accepted --> open-fixed
     
  • Vernon Cole

    Vernon Cole - 2009-06-05
    • status: open-fixed --> closed-fixed