(unknown charset) Re: [BLACKBOX] Is this a Files bug?

From: (unknown charset) unknown charset <no email>
Date: Tue, 20 Nov 2012 17:35:52 +0400

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

Hi.

Seems like HostFiles.File.Close closes WinApi-reference in any case, not
just in the Exclusive mode,
> (*
> IF f.state = exclusive THEN
> CloseFile(f, res)
> ELSE
> CloseFileHandle(f, res)
> END
> *)

decision section is commented by someone :)

The easy way is to leave file opened, let the garbage collector deals with
it, anyway, closing shared files is not nececcary.


Best regards.


On Tue, 20 Nov 2012 17:21:43 +0400, Campbell, Robert (SELEX GALILEO, UK)
<robert.d.campbell{([at]})nowhere.xy

> Hi
>
> I have uncovered a simple example of some unexpected (undesirable !)
> behaviour.
>
> However I can't really decide if it is an implementation bug, or if I am
> just trying to do something
> unreasonable.
>
> The trap occurs when I
>
>
> 1) Open a Document in a Window from the Files-Open Menu
>
> 2) Use a BlackBox procedure to scan the file on disc for some
> information
>
> 3) Then edit the open Window.
>
> I get a TRAP ASSERT(f.state # closed, 20).
>
>
>
> You can try this with the attached example
>
>
> 1) Open the file
>
> 2) Click on <Ctrl>Q RdcFilesBug.Fetch
>
> 3) Type into the source code.
>
> Regards,
>
> Robert
> SELEX Galileo Ltd
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex
> SS14 3EL
> A company registered in England & Wales. Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1419256079_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body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c2Ugbm9yIGRpc2Nsb3NlIG9yXHBh
cg0KPiBkaXN0cmlidXRlIGl0cyBjb250ZW50cyB0byBhbnkgb3RoZXIgcGVyc29uLlxwYXINCj4g
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKipccGFyDQo+XHBhcg0KPlxwYXINCj4gLS0tLVxwYXINCj4gVG8gdW5zdWJzY3Jp
YmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gIFxwYXIN
Cj4gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIXHBhcg0KXHBhcg0KXHBhcg0KLS0gXHBhcg0KVXNp
bmcgT3BlcmEncyByZXZvbHV0aW9uYXJ5IGVtYWlsIGNsaWVudDogaHR0cDovL3d3dy5vcGVyYS5j
b20vbWFpbC9ccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQg
YSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMu
T0J9fQBCZ1NoYW90WkNGSw==
----boundary-LibPST-iamunique-1419256079_-_---
Received on Tue Nov 20 2012 - 14:35:52 UTC

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