vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Brandneu! sevEingabe v3.0 - Das Eingabecontrol der Superlative!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

VB.NET - Fortgeschrittene
Re: Fortschrittsanzeige und nicht aufhängen im FTP ? 
Autor: planetX
Datum: 16.10.04 23:19

Danke, ich habe mir das mal durchgelesen, und habe auch alles installiert und probiere gerade die Test2 aus. Jedoch verstehe ich nicht ganz, was ich damit machen soll
[html]
Using EasyThread

EasyThread comes with a setup.exe that automatically registers it with VS.NET 2003. Once EasyThread has been installed, you can open an application and start using it.



The guidelines for using EasyThread to keep Windows client apps responsive (and users feeling in control and productive) are:



1. Move any event handlers that are long running onto their own background thread. This can be done by adding the “[BgThread]” attribute in front of the event handler method. I recommend creating a separate, well-named method for this step that is called from the VS.NET-generated event handler methods. There is no need to use delegates or funny parameters here; just treat it like a normal method call. The main restriction here is that it must be a “void” return type (since it is called asynchronously). See the “Known Issues” section below for a more complete list of restrictions.



How long is “long running”? It depends on several factors, such as how often the events occur, the time to handle the events, the patience of the end-user, etc. I recommend trying to keep the window and controls responding in the way that seems to be “instant” (under .25 secs) so that the end-user feels in control of the application.



2. Within this code now running on a background thread, run any code blocks that need to access a Windows control or any object data on the foreground thread. This can be done by moving them into their own method and adding the “[FgThread]” attribute in front of those methods. This will suspend the background thread execution while the code runs on the foreground thread.



This solves the problem of having to move to the foreground thread to access Windows controls and it has the nice by-product of minimizing the need for locking (since the foreground thread will only run one of these “atomic blocks” of code at a time and not overlap them with each other or short-running work). The call to the foreground methods need no delegates and can use normal parameters and return types.
[/html]

so sieht das ganze in der Readme aus. Jedoch verstehe ich als Laie nicht wirklich, was das sein soll.

Wärst du bitte sonett und erklärst mir was ich machen muss ?

Danke
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Fortschrittsanzeige und nicht aufhängen im FTP ?941planetX16.10.04 20:02
Re: Fortschrittsanzeige und nicht aufhängen im FTP ?606ModeratorFZelle16.10.04 21:09
Re: Fortschrittsanzeige und nicht aufhängen im FTP ?709planetX16.10.04 23:19
Re: Fortschrittsanzeige und nicht aufhängen im FTP ?665planetX17.10.04 13:07

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel