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