Problems with an application using ADO

User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Problems with an application using ADO

Post by James Bott »

resource leak


I ...oh, never-mind.

James :-)
User avatar
TimStone
Posts: 2968
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 6 times
Contact:

Re: Problems with an application using ADO

Post by TimStone »

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
User avatar
Enrico Maria Giordano
Posts: 8784
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Problems with an application using ADO

Post by Enrico Maria Giordano »

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
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Problems with an application using ADO

Post by James Bott »

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
User avatar
TimStone
Posts: 2968
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 6 times
Contact:

Re: Problems with an application using ADO

Post by TimStone »

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
User avatar
Antonio Linares
Site Admin
Posts: 42832
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 156 times
Been thanked: 120 times
Contact:

Re: Problems with an application using ADO

Post by Antonio Linares »

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
User avatar
TimStone
Posts: 2968
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 6 times
Contact:

Re: Problems with an application using ADO

Post by TimStone »

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
User avatar
nageswaragunupudi
Posts: 10733
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 11 times
Contact:

Re: Problems with an application using ADO

Post by nageswaragunupudi »

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
User avatar
Enrico Maria Giordano
Posts: 8784
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Problems with an application using ADO

Post by Enrico Maria Giordano »

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
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Problems with an application using ADO

Post by StefanHaupt »

Should this fix be applied to older versions of fwh, too ?
kind regards
Stefan
User avatar
nageswaragunupudi
Posts: 10733
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 11 times
Contact:

Re: Problems with an application using ADO

Post by nageswaragunupudi »

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

No
Only FWH 13.05.
Regards

G. N. Rao.
Hyderabad, India
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Problems with an application using ADO

Post by James Bott »

Is the fix now in the current 13.05 download?
User avatar
Antonio Linares
Site Admin
Posts: 42832
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 156 times
Been thanked: 120 times
Contact:

Re: Problems with an application using ADO

Post by Antonio Linares »

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
User avatar
Antonio Linares
Site Admin
Posts: 42832
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 156 times
Been thanked: 120 times
Contact:

Re: Problems with an application using ADO

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
User avatar
lucasdebeltran
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am
Contact:

Re: Problems with an application using ADO

Post by lucasdebeltran »

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.
Post Reply