Re: [BLACKBOX] Long running command and Dialog.ShowStatus

From: [at]} <Chris>
Date: Fri, 4 Dec 2009 09:59:35 +1030

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

>-----Original Message-----
>From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>Sent: Friday, 4 December 2009 9:04 AM
>
>Surely these problems (apparent hanging of BlackBox, and the
>fact that Ctrl-Break does not work as advertised) can and
>should be solved at a lower level than imposing lots of
>awkward logic into every application?
>

I suspect not as these problems are *application-specific* and under the
control of the application programmer. If you develop a single-threaded
Windows application it can only respond to user interaction while it is
'idle' and not involved in any other processing. A relevant article "Using
Messages and Message Queues" is at:

http://msdn.microsoft.com/en-us/library/ms644928(VS.85).aspx

Note the comment added to the end:

"Lengthy operations should always be done in a separate thread ...
PeekMessage shouldn't be needed in modern, well-written applications."

Regards,
Chris

--
Chris Burrows
CFB Software
Armaide: ARM Oberon-07 Development System
http://www.cfbsoftware.com/armaide
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-2020249634_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLVxw
YXINCj5Gcm9tOiBCbGFja0JveC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NweFxwYXINClxwYXINCk5vdGUgdGhlIGNvbW1lbnQgYWRkZWQgdG8gdGhlIGVuZDpccGFyDQpc
cGFyDQoiTGVuZ3RoeSBvcGVyYXRpb25zIHNob3VsZCBhbHdheXMgYmUgZG9uZSBpbiBhIHNlcGFy
YXRlIHRocmVhZCAuLi5ccGFyDQpQZWVrTWVzc2FnZSBzaG91bGRuJ3QgYmUgbmVlZGVkIGluIG1v
ZGVybiwgd2VsbC13cml0dGVuIGFwcGxpY2F0aW9ucy4iXHBhcg0KXHBhcg0KUmVnYXJkcyxccGFy
DQpDaHJpc1xwYXINClxwYXINCi0tXHBhcg0KQ2hyaXMgQnVycm93c1xwYXINCkNGQiBTb2Z0d2Fy
ZVxwYXINCkFybWFpZGU6IEFSTSBPYmVyb24tMDcgRGV2ZWxvcG1lbnQgU3lzdGVtXHBhcg0KaHR0
cDovL3d3dy5jZmJzb2Z0d2FyZS5jb20vYXJtYWlkZVxwYXINClxwYXINClxwYXINCi0tLS1ccGFy
DQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNL
Qk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAAADAG
----boundary-LibPST-iamunique-2020249634_-_---
Received on Fri Dec 04 2009 - 00:29:35 UTC

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