RE: Multithreading

From: Martin, Marc <"Martin,>
Date: Wed, 19 Feb 2003 17:25:26 -0800

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

>I am acquiring data
>from a USB device using the standard Windows call
>WinApi.DeviceIoControl. This call appears to be blocking,
>i.e., it does not return unless the device sends the
>requested data. In case the device does not have data,
>the call stalls, and as a consequence BlackBox becomes
>unresponsive (an hour glass appears on screen).

Couldn't you simply use Blackbox's "Services.Action"
routines to prevent the Blackbox framework from
being unresponsive?

Although I'll always second any suggestion to improve
the multi-threading capabilities of Blackbox -- I've been
suggesting this since 1996! In my case, I have a long
running command which calls a Fortran DLL which in
turns calls my Blackbox code. Unfortunately, whenever
the Fortran DLL is being executed, the Blackbox
framework becomes unresponsive and I can no longer
do anything in it until the Fortran DLL is finished.
And there doesn't appear to be any way to use the
"Services.Action" routines to fix this. I also once
tried using Windows process threads to try to workaround
this, but this caused the Blackbox framework to crash.

Marc Martin
marc.martin{([at]})nowhere.xy
Boeing Commercial Space Company
--------------------------------------------

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-172304434_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0M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RoYXQgbW9kZXJhdGlvbiB3aWxsIG9mdGVuIGNhdXNlIHNvbWUg
ZGVsYXksIGluIHBhcnRpY3VsYXIgb3ZlciB3ZWVrZW5kcyBvciBob2x5ZGF5c319AHV0LTAx


----boundary-LibPST-iamunique-172304434_-_---
Received on Thu Feb 20 2003 - 02:25:26 UTC

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