[BLACKBOX] Long running command and Dialog.ShowStatus

From: [at]} <Josef>
Date: Thu, 3 Dec 2009 07:19:20 +0100

----boundary-LibPST-iamunique-193529084_-_-
Content-type: text/plain

Hi Everybody!

I have a long running command (about 15 min) and in order
to show that it makes progress, I call Dialog.ShowStatus,
which displays a message in the status bar at the bottom of the
application window.

This works fine as long as there is no event being sent to the
application e.g. by clicking the mouse or pressing a key.
If such an event occurs, the status bar stops being updated
after about 5 seconds and the application appears to be
completely frozen until the command terminates.
This confuses the users and it confuses even me.

I observed in the Windows Task Manager that the application is getting
a 'not responding' state after 5 seconds and also the application window
title changes in order to indicate that it is not responding.
I guess that there is some connection between this state change
and the update behavior of the status bar.

Is there any solution to this problem?
Any kind of better progress bar?
Any way of telling windows that the app is still alive?
Any way of increasing the 5 sec timeout?
Any other idea?

Thanks

- Josef

P.S. A simple test program follows

MODULE TestLong;
IMPORT Dialog, Strings;
PROCEDURE Do*;
  VAR i, j: INTEGER; s: ARRAY 20 OF CHAR;
BEGIN
  FOR i := 0 TO 300 DO
    FOR j := 0 TO 10000000 DO
    END ;
    Strings.IntToString(i, s);
    Dialog.ShowStatus("msg " + s)
  END
END Do;
END TestLong.


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-193529084_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt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CiAgRU5EXHBhcg0KRU5EIERvO1xw
YXINCkVORCBUZXN0TG9uZy5ccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3Jp
YmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNF
UlZATElTVFMuT0JFUk9OLkNIfX0AYWlsdA==
----boundary-LibPST-iamunique-193529084_-_---
Received on Thu Dec 03 2009 - 07:19:20 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:40 UTC