Page 3 of 3

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Thu Sep 26, 2024 5:18 pm
by Enrico Maria Giordano
Never mind, there was a problem in the xHarbour/MSC32 build. Now it is fixed:

http://www.xharbour.org/files/download/ ... vc2022.zip

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Thu Sep 26, 2024 9:37 pm
by Enrico Maria Giordano
As a resume:

Code: Select all | Expand

TEST HB_GCALL()

MSC32: OK
MSC64: CRASH
BCC32: OK
BCC64: CRASH

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Fri Sep 27, 2024 10:25 am
by Enrico Maria Giordano
What is this method for?

Code: Select all | Expand

fwmariarowset_Destroy()
If I remove it the crash goes away. And also if I replace DESTRUCTOR with METHOD.

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Fri Sep 27, 2024 11:04 am
by Enrico Maria Giordano
In fwmariarowset_Destroy(), if I put

Code: Select all | Expand

? k
the result is

Code: Select all | Expand

4171717171
Something wrong here...

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Mon Sep 30, 2024 11:53 am
by nageswaragunupudi
Can we restrict the destructor method not to work with xHarbour 64 bits only?
Let me try

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Mon Sep 30, 2024 12:24 pm
by Enrico Maria Giordano
Yes, we can.

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Mon Sep 30, 2024 12:42 pm
by nageswaragunupudi
At the top of the module

Code: Select all | Expand

#ifdef __XHARBOUR__
#ifdef __64__
#define __XHARBOUR64__
#endif
#endif

Code: Select all | Expand

#ifndef __XHARBOUR64__
   DESTRUCTOR fwmariarowset_Destroy()
#endif
Next apply the same condition to the entire body of the Procedure

Do you think this should be ok?

Re: Bug Maria_Connect() FWH-24.07 64 bits ???

Posted: Mon Sep 30, 2024 1:05 pm
by Enrico Maria Giordano
Yes, I think so. But the question is: why do you need an explicit destructor?