Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Delphi] DL I-Net file = Freeze APP while DL?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
h4c0r-BG
Master Cheater
Reputation: 0

Joined: 29 Nov 2006
Posts: 449
Location: The yogurt country

PostPosted: Tue Jul 22, 2008 11:39 am    Post subject: [Delphi] DL I-Net file = Freeze APP while DL? Reply with quote

When i click the button to start downloading "file from the internet" my application "freezes" like i have set sleep(99999999999); and it continues like that until the download is completed.

The first example is with progress bar which is really nice.
But does anybody of you have any idea how to fix this?

Resources used:

http://delphi.about.com/cs/adptips2003/a/bltip0903_2.htm

http://delphi.about.com/od/internetintranet/a/get_file_net.htm

http://www.vbforums.com/showthread.php?t=345726

Download attachment if can't see it:

download internet file with progressbar source and binary.rar



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________

Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Tue Jul 22, 2008 11:42 am    Post subject: Reply with quote

It's because it's doing it in the main-thread.
Either do it in a seperate or use a indy-component for it (idHTTP).
Back to top
View user's profile Send private message
h4c0r-BG
Master Cheater
Reputation: 0

Joined: 29 Nov 2006
Posts: 449
Location: The yogurt country

PostPosted: Tue Jul 22, 2008 4:42 pm    Post subject: Reply with quote

Thank you very much, I will look for thread examples because i really want to save that "ready progress bar example code". Very Happy

Edit:

Can someone give me a hint or simply tell me what exactly i need to insert in the thread execution?

Like here we have an example of monitoring registry changes --> http://delphi.about.com/library/code/ncaa052003a.htm

_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites