1. libmysql.dll en 32bits y 64bits se debe llamar as矛 hay que cambiar de nombre a libmysql64.dll por libmysql.dll para poder trabajar en 64bits existe alguna manera de trabajar con libmysql.dll y libmysql64.dll en la misma carpeta asi como se trabaja freeimage.dll y freeimage64.dll.
2. coloco un ejemplo sencillo donde cada vez que se revisa una procedimiento se incrementa la memoria, es como si no cerrara el oRcs coloco un ejemplo
cada vez que entra a CalCtaAntDH se incrementa la memoria.
聽 聽oRcs := oConexion:Query("Select * From MaesCont Order by NroAsi")
聽 聽 If oRcs==Nil
聽 聽 聽 聽 Return(.f.)
聽 聽 EndIf
聽 聽While !oRcs:Eof()
聽 聽 聽 聽 fNroAsi := oRcs:Fields("NROASI"):Value
聽 聽 聽 fFecAsi := oRcs:Fields("FECASI"):Value
聽 聽 聽 聽 fTotDeb := 0
聽 聽 聽 聽 fTotHab := 0
聽 聽 聽 聽oRcsC := oConexion:Query("Select * From DetaCont Where NroAsi="+str(fNroAsi))
聽 聽 聽 聽 If oRcsC==Nil
聽 聽 聽 聽 聽 聽 Return(.f.)
聽 聽 聽 聽 EndIf
聽 聽 聽 聽 While !oRcsC:Eof()
聽 聽 聽 聽 聽 fCodCta := oRcsC:Fields("CODCTA"):Value
聽 聽聽 聽 fDebe 聽 := oRcsC:Fields("DEBE"):Value
聽 聽 聽 聽 fHaber 聽:= oRcsC:Fields("HABER"):Value
聽 聽 聽 聽 聽 聽 fTotDeb += fDebe
聽 聽 聽 聽 聽 聽 fTotHab += fHaber
聽 聽 聽 聽 聽 聽 CalCtaAntDH(fCodCta,fDebe,fHaber,"+")
聽 聽 聽 聽 聽 聽oRcsC:MoveNext()
聽 聽 聽 聽 EndDo
聽 聽 聽 聽 oRcs:Fields("TotDeb"):Value := fTotDeb
聽 聽 聽 聽 oRcs:Fields("TotHab"):Value := fTotHab
聽 聽 聽 聽 oRcs:Save()
聽 聽 聽 聽oRcs:MoveNext()
聽 聽 EndDo
//
Procedure CalCtaAntDH(fCodCta,fDebe,fHaber,fSumRes)
聽 聽 oRcsA := oConexion:Query("select * from cuentas where `codcta`='"+fCodCta+"'")
聽 聽 If oRcsA==Nil
聽 聽 聽 聽 Return(.f.)
聽 聽 EndIf
聽 聽 If !oRcsA:Eof()
聽 聽 聽 聽 If !Empty(fDebe)
聽 聽 聽 聽 聽 聽If fSumRes = "+"
聽 聽 聽 聽 聽 聽 聽 聽 oRcsA:Fields("Debe"):Value 聽+= fDebe
聽 聽 聽 聽 聽 聽 Else
聽 聽 聽 聽 聽 聽 聽 聽 oRcsA:Fields("Debe"):Value 聽-= fDebe
聽 聽 聽 聽 聽 聽 EndIf
聽 聽 聽 聽 EndIf
聽 聽 聽 聽 If !Empty(fHaber)
聽 聽 聽 聽 聽 聽If fSumRes = "+"
聽 聽 聽 聽 聽 聽 聽 聽 oRcsA:Fields("Haber"):Value += fHaber
聽 聽 聽 聽 聽 聽 Else
聽 聽 聽 聽 聽 聽 聽 聽 oRcsA:Fields("Haber"):Value -= fHaber
聽 聽 聽 聽 聽 聽 EndIf
聽 聽 聽 聽 EndIf
聽 聽 聽 聽 oRcsA:Save()
聽 聽 EndIf聽 聽
聽 聽 oRcsA:Close()El mismo resultado con la versi贸n 16.05 y 16.06
Nota: Con ADO no aumenta la memoria en procesos de windows, con ese mismo ejemplo
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql
Ing. MSc. Luis Duque
http://www.accasoft.net