FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Bug Maria_Connect() FWH-24.07 64 bits ???
Posts: 514
Joined: Sun Oct 16, 2005 03:32 AM
Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 04:55 PM
Hola amigos,

Parece que hay un bug en María_Connect() FWH-24.07 64 bits, o algo estoy haciendo mal y el bug lo tengo yo en el cerebro:

Por favor compilen el siguiente ejemplo, le ejecutan, pulsan sobre "Show table Customer", abren el browse con la tabla, la cierran, y vuelven a pulsar sobre "Show table Customer" por segunda vez. Después de que se les abra la tabla la cierran, y luego de unos segundos, el programa se cierra solo, por arte de magia, sin dar ningún mensaje, ni error.
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()
   LOCAL oDlg

   SET DATE ITALIAN
   SET CENTURY ON

   DEFINE DIALOG oDlg SIZE 320,200 PIXEL TRUEPIXEL TITLE "Bug Maria_Connect() ???"
        @ 40,70 BUTTON "Show Table Customer" OF oDlg PIXEL ACTION ShowTable( ) SIZE 180,40
     ACTIVATE DIALOG oDlg CENTERED

return nil
//------------------------------------//

Function ShowTable( )
   LOCAL aStr := { "208.91.198.197:3306,fwhdemo,gnraofwh,Bharat@1950", ;
                 "209.250.245.152,fwh,fwhuser,FiveTech@2022" }
   LOCAL oCn, oRs
        
   oCn := Maria_Connect(  aStr[ 1 ] , .T.)
   oRs   := oCn:RowSet( "customer" )

   xBrowse(oRs)

   oCn:Close()

Return NIL
//------------------------------------//

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 05:19 PM

The problem seems to be with xHarbour, with Harbour there is no crash.

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 05:39 PM
Enrico Maria Giordano wrote:The problem seems to be with xHarbour, with Harbour there is no crash.
Enrico, could you please test this example in 32 and 64 bits so you can say for sure whether the defect is in FIVEWIN or XHARBOUR?

Enrico, ¿podrías probar este ejemplo en 32 y 64 bits para poder decir con seguridad si el defecto está en FIVEWIN o XHARBOUR?

https://forums.fivetechsupport.com/viewtopic.php?f=6&t=44878&sid=4e646ae5f103997604e8c0053c2c284f&sid=4e646ae5f103997604e8c0053c2c284f#p273596

¡Cualquier ayuda será bienvenida!

Any help will be welcome!

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 05:42 PM

Which sample? Can you provide the link here, please?

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 05:51 PM
Enrico Maria Giordano wrote:Which sample? Can you provide the link here, please?
https://wormhole.app/yMqMb#OhKkTv9e3asZmv8QeDT0-w

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 06:01 PM
If I replace this
Code (fw): Select all Collapse
oRs   := oCn:RowSet( "customer" )
with this other
Code (fw): Select all Collapse
oRs   := {}
the problem goes away (of course the browse is empty). Maybe something inside RowSet() method or siblings? Rao?
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 06:02 PM
Posts: 514
Joined: Sun Oct 16, 2005 03:32 AM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 06:32 PM

Enrico, thank you for your interest. I also believe the problem might be related to RowSet(). I hope Mr. Rao can help us.

Saludos,



Carlos Gallego



*** FWH-25.12, xHarbour 1.3.1 Build 20241008, Borland C++7.70, PellesC, ADS 11.1***

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 06:42 PM
Enrico Maria Giordano wrote:
https://wormhole.app/yMqMb#OhKkTv9e3asZmv8QeDT0-w
PAGE NOT FOUND Sorry! Desculpe!

Download now,

https://mega.nz/file/ZM1zxIbZ#HoE9toldmOF6uxqCnlvnzqGZIQRCfGACh8ZLxkUGxRI

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 07:12 PM
Cgallegoa wrote:Enrico, thank you for your interest. I also believe the problem might be related to RowSet(). I hope Mr. Rao can help us.
But this doesn't explain why there is no error with Harbour...
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 07:23 PM
karinha wrote:
Enrico, could you please test this example in 32 and 64 bits so you can say for sure whether the defect is in FIVEWIN or XHARBOUR?
Sorry, I don't understand how to check your sample. I need a REDUCED sample, please. Anyway, the OP's sample is good for this.
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 20, 2024 08:21 PM
Enrico, aqui el problema:

https://forums.fivetechsupport.com/viewtopic.php?f=6&t=44878&sid=7e9b77ce511da30f39888460eadbfe6e

Amostra solo tiene 1 .prg -> TEST.PRG

gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Mon Sep 23, 2024 12:44 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion