Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2004

Tip: Looking for answers? Try searching our database.

Progressbar stops working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Glyn Meek - 29 Aug 2004 03:41 GMT
I have a Visual Basic application that process TIF and TARGA image files,
some of which are upwards of 1.5 gig each.  The processing can take about 10
hours on a fairly fast PC with 2 giabytes of memory.  Like most anal
retentive developers(!) I want to keep my eye on the progress and have built
in  a variety of displays to do this.

I have used multiple progressbars, and also some 'count displays'. As I pass
through the loops, I issue a number of 'xxx.refresh' statements on the
controls as they are changed. The program runs perfectly and the displays
all change UNTIL I either minimize the window, OR start another application.
At this point, while the program continues to execute and WILL run to a
succesful conclusion, NONE of the 'displays' will change any more.

Anyone got any suggestions as to how I get the displays to start updating
again after I maximize the application window????

Thanks
Glyn Meek
Sijin Joseph - 29 Aug 2004 08:47 GMT
Why not go in for a multithreaded solution. With the processing going on
in the secondary thread and sending progress updates to the primary UI
thread.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/wi
nforms06112002.asp

http://msdn.microsoft.com/msdnmag/issues/04/01/NET/default.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaco
nthreadinginvisualbasic.asp


Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> I have a Visual Basic application that process TIF and TARGA image files,
> some of which are upwards of 1.5 gig each.  The processing can take about 10
[quoted text clipped - 14 lines]
> Thanks
> Glyn Meek

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.