Execute querries in background...

Hi,

I want to make my app to execute some code (SQL querries,TTable reading) in background( so my app will not be block for the user when it execute). I have try thread but my app is still block. How to use thread (or how to do) to avoid this problem?

Regards.  
Lebougre.
LVL 1
LebougreAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ivanov_GCommented:
How can I run queries in threads?
http://www.delphicorner.f9.co.uk/articles/db1.htm
0
pcsentinelCommented:
if using ADO , you dont need to use threads, just run the query asynchronously, see my answer in
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21782611.html
0
naartjieCommented:
Hi,

When you create a thread, you must create a seperate TSession and TDatabase inside it.  All your queries / tables should use the newly created session name and database name.

Hope this helps a bit.  Lemme know if you need a code snippet to help out.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LebougreAuthor Commented:
Hi,

I'm still testing your answers....:)

Regards.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.