MyQuery OnProgress

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Thr33D
Posts: 2
Joined: Mon 18 Apr 2011 13:28
Contact:

MyQuery OnProgress

Post by Thr33D » Wed 13 Nov 2013 23:07

Hi,

I use MyQuery (MyDac) to upload Files (4MB) in my database. This process need a moment. I don't want use MyQuery in a thread. I search a way to use application.ProcessMassages so that my application doesn't freeze. Is there a way?

On other components are events like "OnWork" or "OnProgress".

About help I would appreciate it. Thank you.

AndreyZ

Re: MyQuery OnProgress

Post by AndreyZ » Thu 14 Nov 2013 10:57

Hello,

For tasks that require a long time it is better to use threads. If you want to use the Application.ProcessMessages method, you can call it after calling the TMyQuery.Execute method.
Also, you can try using the TMyLoader component that serves for fast loading of data to the server. It has the OnProgress event.

Post Reply