FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problems with an application using ADO
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problems with an application using ADO
Posted: Tue Jun 11, 2013 06:03 PM
resource leak


I ...oh, never-mind.

James :-)
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Problems with an application using ADO
Posted: Tue Jun 11, 2013 11:01 PM

I just got referred here from my other post.

I will test this solution shortly.

The problem occurs with Harbour and MSVC
The problem does not occur with xHarbour (.com )

I only use DBF's, no ADO

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Tue Jun 11, 2013 11:25 PM
Tim,

TimStone wrote:I just got referred here from my other post.

I will test this solution shortly.

The problem occurs with Harbour and MSVC
The problem does not occur with xHarbour (.com )

I only use DBF's, no ADO


The problem is independent from Harbour/xHarbour and from ADO/DBF. It's only very random. I never see it in my XP, go figure.

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problems with an application using ADO
Posted: Tue Jun 11, 2013 11:35 PM
The problem is independent from Harbour/xHarbour and from ADO/DBF.


If it was a resource leak, it would be independent of the above. I'm not sure why it would not happen under XP though.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Problems with an application using ADO
Posted: Tue Jun 11, 2013 11:36 PM

I have two builds from the same code.

The first is with xHarbour.com and it never locks up
The second is with Harbour/MSVC and it does have the problem.

The code is almost 100% identical ( except for a couple of functions Antonio had me add to the xHarbour version ).

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 12:14 AM

Tim,

That is a perfect ocassion to use the low level Visual C debugger as I explained some days ago.

You could run your app from such debugger and when it crahs we could perfectly see the low level C calls stack, to get a much better idea whats going on

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 03:20 AM

I want to do that but I've been really busy. The fix suggested in this thread seems to have resolved the problem. I let it sit idle for a couple of hours and it still worked fine. That likely is a change that needs to be implemented in the xHarbour build of the libs.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 03:44 AM

Friends,

I tested ribbon.prg after applying the fixes for the tmsgitem.prg suggested above.
Both with Harbour and xHarour the exe is not freezing.
Can other friends also take the trouble of testing and comfirm ?

Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 08:26 AM
NageswaraRao,

nageswaragunupudi wrote:Friends,

I tested ribbon.prg after applying the fixes for the tmsgitem.prg suggested above.
Both with Harbour and xHarour the exe is not freezing.
Can other friends also take the trouble of testing and comfirm ?


Yes, it looks like the suggested fix in tmsgitem.prg is the correct one. Thank you! :-)

EMG
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 09:25 AM

Should this fix be applied to older versions of fwh, too ?

kind regards

Stefan
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 10:04 AM
StefanHaupt wrote:Should this fix be applied to older versions of fwh, too ?

No
Only FWH 13.05.
Regards



G. N. Rao.

Hyderabad, India
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 01:11 PM

Is the fix now in the current 13.05 download?

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 01:43 PM

James,

No, it is not and should be, so we are going to publish a revised FWH 13.05 version.

Thanks to all of you for your feedback and help :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 02:57 PM

There is a revised FWH 13.05 (32 and 64) build already availables, thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: Problems with an application using ADO
Posted: Wed Jun 12, 2013 03:57 PM

Antonio,

Have you included tDatarow bugfixes?.

And xBrowse´s Font problema?.

Thanks.

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.