possible bug at FW_CreateMDB( cDb )?

possible bug at FW_CreateMDB( cDb )?

Postby lucasdebeltran » Mon Jun 10, 2013 3: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.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: possible bug at FW_CreateMDB( cDb )?

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 103 guests