Re: [BLACKBOX] Program freezes when window loses focus

From: [at]} <Alexander>
Date: Wed, 16 Mar 2011 00:42:20 +0600

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

Hello!

SRT> This is probably a newbie problem but I would appreciate if
SRT> somebody could offer a suggestion. I am writing a BlackBox
SRT> program that reads a text file and performs some calculations. I
SRT> have a window displaying the progress, which updates correctly as
SRT> each piece of data is read and calculations performed. If I run
SRT> with a small text data file, the program is over quickly with no
SRT> problems. But with a large data file, the program takes several
SRT> minutes. If during that time I do anything so the program's
SRT> window loses the focus, e.g. run another Windows program, or even
SRT> click the mouse outside the BlackBox program's window, the
SRT> program freezes and I get a BlackBox (Not Responding) message. I
SRT> do my development on a MacBook laptop with VM Fusion and a
SRT> Windows XP virtual machine. I thought I might have a problem
SRT> with VM Fusion, so I tried on a desktop PC running Windows XP
SRT> directly, and got the same result. Can anyone suggest a fix for this?

  The program is still running. Disregard the "(Not Responding)"
  message, it simply means that BlackBox is too busy doing your task
  to repaint its main window or handle mouse/keyboard events.

---===---
 Alexander


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-700130694_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlbGxvIVxwYXINClxwYXIN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AoTm90IFJlc3BvbmRpbmcpIG1lc3NhZ2UuICBJXHBhcg0K
U1JUPiBkbyBteSBkZXZlbG9wbWVudCBvbiBhIE1hY0Jvb2sgbGFwdG9wIHdpdGggVk0gRnVzaW9u
IGFuZCBhXHBhcg0KU1JUPiBXaW5kb3dzIFhQIHZpcnR1YWwgbWFjaGluZS4gIEkgdGhvdWdodCBJ
IG1pZ2h0IGhhdmUgYSBwcm9ibGVtXHBhcg0KU1JUPiB3aXRoIFZNIEZ1c2lvbiwgc28gSSB0cmll
ZCBvbiBhIGRlc2t0b3AgUEMgcnVubmluZyBXaW5kb3dzIFhQXHBhcg0KU1JUPiBkaXJlY3RseSwg
YW5kIGdvdCB0aGUgc2FtZSByZXN1bHQuICBDYW4gYW55b25lIHN1Z2dlc3QgYSBmaXggZm9yIHRo
aXM/XHBhcg0KXHBhcg0KICBUaGUgcHJvZ3JhbSBpcyBzdGlsbCBydW5uaW5nLiBEaXNyZWdhcmQg
dGhlICIoTm90IFJlc3BvbmRpbmcpIlxwYXINCiAgbWVzc2FnZSwgaXQgc2ltcGx5IG1lYW5zIHRo
YXQgQmxhY2tCb3ggaXMgdG9vIGJ1c3kgZG9pbmcgeW91ciB0YXNrXHBhcg0KICB0byByZXBhaW50
IGl0cyBtYWluIHdpbmRvdyBvciBoYW5kbGUgbW91c2Uva2V5Ym9hcmQgZXZlbnRzLlxwYXINClxw
YXINCi0tLT09PT09LS0tXHBhcg0KIEFsZXhhbmRlclxwYXINClxwYXINClxwYXINCi0tLS1ccGFy
DQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNL
Qk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAMAAAQ
----boundary-LibPST-iamunique-700130694_-_---
Received on Tue Mar 15 2011 - 19:42:20 UTC

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