FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug Maria_Connect() FWH-24.07 64 bits ???
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Thu Sep 26, 2024 05:18 PM
Never mind, there was a problem in the xHarbour/MSC32 build. Now it is fixed:

http://www.xharbour.org/files/download/windows/xhb10284_msvc2022.zip
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Thu Sep 26, 2024 09:37 PM
As a resume:
Code (fw): Select all Collapse
TEST HB_GCALL()

MSC32: OK
MSC64: CRASH
BCC32: OK
BCC64: CRASH
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 27, 2024 10:25 AM
What is this method for?
Code (fw): Select all Collapse
fwmariarowset_Destroy()
If I remove it the crash goes away. And also if I replace DESTRUCTOR with METHOD.
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Fri Sep 27, 2024 11:04 AM
In fwmariarowset_Destroy(), if I put
Code (fw): Select all Collapse
? k
the result is
Code (fw): Select all Collapse
4171717171
Something wrong here...
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Mon Sep 30, 2024 11:53 AM

Can we restrict the destructor method not to work with xHarbour 64 bits only?

Let me try

Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Mon Sep 30, 2024 12:24 PM

Yes, we can.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Mon Sep 30, 2024 12:42 PM
At the top of the module
Code (fw): Select all Collapse
#ifdef __XHARBOUR__
#ifdef __64__
#define __XHARBOUR64__
#endif
#endif
Code (fw): Select all Collapse
#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?
Regards



G. N. Rao.

Hyderabad, India
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug Maria_Connect() FWH-24.07 64 bits ???
Posted: Mon Sep 30, 2024 01:05 PM

Yes, I think so. But the question is: why do you need an explicit destructor?

Continue the discussion