AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Prism Application non responsive with Progress Bar
Thema durchsuchen
Ansicht
Themen-Optionen

Application non responsive with Progress Bar

Ein Thema von FaNIX · begonnen am 1. Feb 2008 · letzter Beitrag vom 1. Feb 2008
 
FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#1

Application non responsive with Progress Bar

  Alt 1. Feb 2008, 07:25
Hi guys!

Hope you all doing well. I have a question, hope someone can guide me in the right direction.

I have a VCL.Net form, with a progress bar on it, nothing out of the ordinary... I then have a another class, lets call it updatelibrary.pas, which is a normal TObject class. What the UpdateLibrary.pas class does is:

It opens a FTP connection, get a list of all files,and then download them from the ftp site to the application folder, now this works just fine, but the problem is, when the ftp transfer begins, the main application becomes unresponsive, like most application that doesn't use threads. I added some code to the UpdateLibrary class so that it updates a progress bar on the main form, but because the main form is unresponsive, the progress bar doesn't move at all.

Any advice on what I can do? Please note that i don't have to use the FTP onProgress/onTransfer(whatever it is) event to indicate the transfer progress, I will control the progress bar with my own code, i just want the progress to reflect on the main form.

If threads is the answer, please give me an example of how my class can be converted of including in a thread, as I've thread to work with threads, but for some reason my application still remains unresponsive, so im not doing it correctly, lol...

Thanks, hope to get some feedback on this.
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:18 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz