program hangs for 10 seconds then comes back...

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
markcr1967
Posts: 9
Joined: Fri 22 Jun 2007 13:17

program hangs for 10 seconds then comes back...

Post by markcr1967 » Thu 26 Jul 2007 16:57

Using MyDAC 4.nn in C++ Builder 6 SP2 my application performed fine.
I was able to scroll thorugh thousands of records using Next()

Now, using 5.nn in C++ Builder 6 SP" my application hangs for 10 seconds after about 30 seconds of Next() The cursor if in an edit control stops blinking and to all intents the program has stopped running. 10 seconds later it caries on where it left off and after a short time does it again.

It is the same app, talking to the same database but under 5.nn hangs.

Any ideas>

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 27 Jul 2007 07:50

Do your dataset have calculated or lookup fields? What is the value of its FetchAll property?

markcr1967
Posts: 9
Joined: Fri 22 Jun 2007 13:17

Yes: lookups using TDBLookupComboBox

Post by markcr1967 » Thu 16 Aug 2007 09:26

The program has 10 TDBLookupComboBox controls, these look at 10 different tables with a max row count of 30 per table.

Can you think of a better way of using lookups?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 16 Aug 2007 12:18

We recently fixed similar problem with performance loss when working with lookup fields. Try to download the last build of MyDAC and test it. The last MyDAC build is 5.10.0.10.

Post Reply