----boundary-LibPST-iamunique-41584241_-_-
Content-type: text/plain
Marc, thanks!
The keywords in (1.) are 'let BlackBox breath':
I *was* using a self-reinstalling Action
(since you asked for a simplest example, I sent you one without Actions)
but used Services.now for the second parameter.
Just using a short delay solves the problem indeed.
(2.) is very useful too.
Thanks to all who answered!
Cheers
Fyodor
[snip]
> As it turns out, your command sits indeed for about 10 seconds in a loop
> without letting BlackBox 'breath' in its own main loop.
>
> There are two solutions for this.
>
> (1.) Cooperative multitasking: Chop your program into really small chunks
> and use Services.Actions. Please refer to ObxActions for an example.
>
> (2.) Use Werner Braun's "Multithreading with Processes" pattern. I've
> attached below excerpts from Werner's emails dated 20th February 2003
> explaining his solution. As a side note: Try adding the command line
> parameter "/EMBEDDING" to your slave BlackBox process. This way, your
> communication engine will not open its main window.
>
> Cheers
> Marc
> Oberon microsystems, Inc.
[snip]
Powered by the E-mail PIM - Info Select - www.miclog.com
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-41584241_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MC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