FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problems with an application using ADO
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Problems with an application using ADO
Posted: Fri Jun 07, 2013 05:38 PM

Dear friends, have you ever had problem with ADO? My customer says that the application freezes at random point and loose the buttonbar icons. Other applications using DBFs works fine. It says that the problem started a couple of days ago. I can't reproduce it in my XP (he's using W7).

Any ideas?

EMG

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problems with an application using ADO
Posted: Fri Jun 07, 2013 07:20 PM

Enrico:

A clue, some times when I forgot to close a table or when open and re open the same table
I receive that problem.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Fri Jun 07, 2013 07:33 PM
Armando,

Armando wrote:Enrico:

A clue, some times when I forgot to close a table or when open and re open the same table
I receive that problem.

Regards


Thank you. My client said that he got the problem while the application was not being used at all (launched but not used). :-)

EMG
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problems with an application using ADO
Posted: Fri Jun 07, 2013 09:58 PM

Enrico:

Another clue, put several msginfo() in your main prg to see where it stops.

regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Problems with an application using ADO
Posted: Fri Jun 07, 2013 10:17 PM

Enrico

Just a wild idea .. had a program that would always fail when a user did a screen shot capture .. and it turned out I had an ON PAINT clause on the window they were doing the screen captures on.

What I am getting at is ON PAINT captures Windows messages and sometimes just having the screen open ( inactive ) and your form has an ON PAINT .. will capture other programs messages and cause some un-intended failures of your program.

Also .. as far as ADO .. some will disagree with me, but I do not use an active connection to define my recordsets .. when I need data .. I just create the oRs with the sql statement and the connection string "on demand".

Rick Lipkin

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problems with an application using ADO
Posted: Fri Jun 07, 2013 11:21 PM

Enrico,

I have had images disappear from buttonbars due to memory leaks.

The memory leak could be in another program too.

James

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: Sat Jun 08, 2013 06:24 AM
Enrico,

I would suggest to keep a log file using FWH function LogFile() and save there the used memory, time, date, executed function, system memory...

http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_logfile

just to have an idea what may be going on. Also Rick suggestion for not having opened connections seems very interesting.

Rick, would you mind to post a small example of how you do it ? thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 09:56 AM
Armando,

Armando wrote:Enrico:

Another clue, put several msginfo() in your main prg to see where it stops.

regards


Unfortunately, the problem is totally random. And as I already said, I was not able to reproduce it.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:00 AM
Rick,

Rick Lipkin wrote:Enrico

Just a wild idea .. had a program that would always fail when a user did a screen shot capture .. and it turned out I had an ON PAINT clause on the window they were doing the screen captures on.


I do have an ON PAINT clause on the main windows. It's for painting the main screen logo. I'll try to disable it, thank you.

Rick Lipkin wrote:Also .. as far as ADO .. some will disagree with me, but I do not use an active connection to define my recordsets .. when I need data .. I just create the oRs with the sql statement and the connection string "on demand".


Me too.

EMG
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:02 AM

Enrico,

We are experimenting network problems with BCC 5.82, that disappear using latest BCC 6.6.

Hope it helps.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:03 AM
James,

James Bott wrote:Enrico,

I have had images disappear from buttonbars due to memory leaks.

The memory leak could be in another program too.

James


Thank you, I'll give it a look.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:05 AM
Antonio,

Antonio Linares wrote:Enrico,

I would suggest to keep a log file using FWH function LogFile() and save there the used memory, time, date, executed function, system memory...

http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_logfile

just to have an idea what may be going on.


I'll try it, thank you.

Antonio Linares wrote:Also Rick suggestion for not having opened connections seems very interesting.


I already use that.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:08 AM
Elvira,

elvira wrote:Enrico,

We are experimenting network problems with BCC 5.82, that disappear using latest BCC 6.6.

Hope it helps.


Thank you. I have no errors using DBF so I don't think it's a network problem. However, I'll try with BCC 6.6.

EMG
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:16 AM

Enrico,

We do experiment data loses and sometimes hangs up the application.

That did not happen with XP.

BCC 6.60 seems to be working better with Windows 7 and 8.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problems with an application using ADO
Posted: Sat Jun 08, 2013 10:34 AM
Elvira,

elvira wrote:Enrico,

We do experiment data loses and sometimes hangs up the application.

That did not happen with XP.

BCC 6.60 seems to be working better with Windows 7 and 8.


My client is using W7 and applications with DBF and with ADO and is only having problem with the one using ADO. But I'll try BCC 6.60, thank you.

EMG