dbTalk Databases Forums  

Some issues for which multithreading support would be useful

comp.databases.ms-access comp.databases.ms-access


Discuss Some issues for which multithreading support would be useful in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
martin-g
 
Posts: n/a

Default Some issues for which multithreading support would be useful - 09-11-2006 , 11:46 AM






Hi.

Some time ago I wrote a specialized Excel files merging tool using
Access. Input .xls files can be extremely large, so calculation
required for merging may last for a long. I have realized a group of
classes to organize tracking of merging process and showing the
progress of done work using a progress bar. Everything seemed to be ok,
but now two main problems are arising:

1) When I activate the main window of another application in front of
my form and after that minimize it, my form can't repaint its contents
and shows white background or some images remained from that other
application. Repainting of the form is impossible because the only
thread is busy with calculations. There is a worse situation: after
minimizing all application windows using "show desktop" button, it's
impossible to show my form by clicking the taskbar icon because the
application can't respond to user actions until the merging process is
done; and now it's impossible to see the progress of the merging
process.

2) If the user starts the merging process, the only way to abort it is
killing the Access process, but I prohibit them to do that, so they
have no choice but waiting till the end of calculations.

So are there any alternatives to multithreading for solving these
problems in Access?

Thanks in advance

Martin


Reply With Quote
  #2  
Old   
Smartin
 
Posts: n/a

Default Re: Some issues for which multithreading support would be useful - 09-11-2006 , 02:22 PM






martin-g wrote:
Quote:
Hi.

Some time ago I wrote a specialized Excel files merging tool using
Access. Input .xls files can be extremely large, so calculation
required for merging may last for a long. I have realized a group of
classes to organize tracking of merging process and showing the
progress of done work using a progress bar. Everything seemed to be ok,
but now two main problems are arising:

1) When I activate the main window of another application in front of
my form and after that minimize it, my form can't repaint its contents
and shows white background or some images remained from that other
application. Repainting of the form is impossible because the only
thread is busy with calculations. There is a worse situation: after
minimizing all application windows using "show desktop" button, it's
impossible to show my form by clicking the taskbar icon because the
application can't respond to user actions until the merging process is
done; and now it's impossible to see the progress of the merging
process.

2) If the user starts the merging process, the only way to abort it is
killing the Access process, but I prohibit them to do that, so they
have no choice but waiting till the end of calculations.

So are there any alternatives to multithreading for solving these
problems in Access?

Thanks in advance

Martin

A well placed DoEvents in the code might ease this. OTOH if the
bog-down happens because JET is beating up the disk on some forever-long
query, it might not.

--
Smartin


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.