FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour possible bug at FW_CreateMDB( cDb )?
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
possible bug at FW_CreateMDB( cDb )?
Posted: Mon Jun 10, 2013 03:58 PM

Hello,

In this function, the oCat should not be closed before ending the function?.

Thank you.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: possible bug at FW_CreateMDB( cDb )?
Posted: Tue Jun 11, 2013 10:33 AM

Mr Lucas

There is no close method for ADOX.Catalog object.

If the create action succeeds oCat:ActiveConnection has a valid ADODB.Connection in open state.
It seems to be a good idea to close it.

When the create action fails, oCat:ActiveConnection is nil.

Catalog object itself will be cleaned by harbour's garbase collection mechanism once there is no variable referencing to that object.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion