File registering bug?

From: Wijck, Bart van <"Wijck,>
Date: Mon, 26 Jan 2004 12:34:07 +0100

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

Hi,

I'm using Stewart Greenhill's Dbu subsystem to fetch financial pages from
the internet, using top module DbuClient.GetFile (for BlackBox 1.4) as
follows:

PROCEDURE GetFile* (host, resource, dir : ARRAY OF CHAR; name : Files.Name)
: Files.File;

At the end of this procedure the file is registered with
c.file.Register(name, "TXT", Files.ask, res); This appears unrelated to the
File.File pointer returned.

If I comment out this regitration step, and directly try to process the file
via the pointer as follows

        IF f = NIL THEN
                Log.String("Test Failed"); Log.Ln;
        ELSE
                Log.String("Test Succeeded"); Log.Ln;
                r := f.NewReader(NIL);
                WHILE ~r.eof DO
                        r.ReadByte(b); ch := CHR(b);
                        (* further processing here *)
                END;
                f.Close;
        END;

then the menu items (File, Edit. Attribute, Info etc.) of BlackBox get
screwed up (repeat themselves all along the top, does not seem to affect the
further working of BlackBox).
So a) if I already have the file pointer why do I still need to register it,
and b) surely this should produce a trap or something and not screw up the
general menu at the top.

Any answers?

Bart





-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo 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.xyCurrent 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-2015112233_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxX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UgYWRkcmVzcy5ccGFyDQpccGFy
DQpTZW5kIGFueSBwcm9ibGVtIHJlcG9ydHMgb3IgcXVlc3Rpb25zIHJlbGF0ZWQgdG8gdGhpcyBl
bWFpbCBsaXN0IHRvIHRoZSBsaXN0IG93bmVyIGF0XHBhcg0KICAgb3duZXItYmxhY2tib3hAb2Jl
cm9uLmNoXHBhcg0KXHBhcg0KQ3VycmVudCBwb3N0aW5nIHBvbGljeTpccGFyDQpccGFyDQphKSBU
byBwb3N0IHlvdSBzaG91bGQgdXNlIHRoZSBzYW1lIGFkZHJlc3MgYnkgd2hpY2ggeW91IGFyZSBz
dWJzY3JpYmVkIHRvIHRoZSBtYWlsaW5nIGxpc3QuIFRoYXQgd2F5LCB0aGUgbGlzdCBzZXJ2ZXIg
d2lsbCByZWNvZ25pemUgeW91IGFzIHN1YnNjcmliZXIgYW5kIGZvcndhcmQgeW91ciBwb3N0aW5n
IGltbWVkaWF0ZWx5LCB3aXRob3V0IGNyZWF0aW5nIGFueSBvdmVyaGVhZC5ccGFyDQpccGFyDQpi
KSBJZiwgZm9yIHNvbWUgcmVhc29uLCB5b3UgY2Fubm90IHBvc3QgZnJvbSB0aGUgYWRkcmVzcywg
Ynkgd2hpY2ggeW91IGFyZSBzdWJzY3JpYmVkLCB5b3VyIG1lc3NhZ2Ugd2lsbCBiZSBtb2RlcmF0
ZWQgdG8gYXZvaWQgc3BhbS4gUGxlYXNlIHVuZGVyc3RhbmQgdGhhdCBtb2RlcmF0aW9uIHdpbGwg
b2Z0ZW4gY2F1c2Ugc29tZSBkZWxheSwgaW4gcGFydGljdWxhciBvdmVyIHdlZWtlbmRzIG9yIGhv
bHlkYXl9fQBibGFja2JveEBvYmU=
----boundary-LibPST-iamunique-2015112233_-_---
Received on Mon Jan 26 2004 - 12:34:07 UTC

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