BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Form showing elapsed time

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language)
View previous topic :: View next topic  
Author Message
Rowman
Guest





PostPosted: Fri Feb 09, 2007 3:31 pm    Post subject: Form showing elapsed time Reply with quote



Hi all,

I'm trying to have a basic progress form showing the elapsed time of
a
quite lengthy process. So that the user wont think the program has
crashed or froze.


I have a process that takes extremely long to execute. What is
causing
the lengthy execution time is the open method of a TQuery object,
since there is alot of data. So it is just that one method. This I
think has eliminated the possibility of using a progress bar to show
the progress. So the only other way I could think of is to show the
elapsed time.


What is the best way to do this? I first tried to use TTimer class
and
then the onTimerEvent method. But then realised that it is message
based and does not work as an interrupt. The timer event then doesnt
execute or preempt the execution of the other process. So how can I
solve this? I tried doing it in another thread as well but this didnt
work. I'm not sure if I'm doing this wrong?


Can anyone guide me in the right direction?


Thanx
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.