comp.lang.ada
 help / color / mirror / Atom feed
* ADA.IO_EXCEPTIONS.USE_ERROR thrown by Ada.Directories.More_Entries
@ 2016-07-27 16:28 WBull
  2016-07-28 11:07 ` AdaMagica
  0 siblings, 1 reply; 2+ messages in thread
From: WBull @ 2016-07-27 16:28 UTC (permalink / raw)


Running an Ada program that calls Ada.Directories.More_Entries on a Windows 7 system that has a protected system file in the directory of the search will throw the USE_ERROR which prevents finding the rest of the entries in the directory. The program was built with the 2016 GPL release of GNAT.

It seems like it would be more useful if the More_Entries call would succeed but the Get_Next_Entry would through the exception which would let the scanning of the directory continue.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ADA.IO_EXCEPTIONS.USE_ERROR thrown by Ada.Directories.More_Entries
  2016-07-27 16:28 ADA.IO_EXCEPTIONS.USE_ERROR thrown by Ada.Directories.More_Entries WBull
@ 2016-07-28 11:07 ` AdaMagica
  0 siblings, 0 replies; 2+ messages in thread
From: AdaMagica @ 2016-07-28 11:07 UTC (permalink / raw)


Looks like a GNAT bug. There is no exception mentioned in A.16(108/2).
Use_Error can be raised by Start_Search A.16(104/3).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-28 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-27 16:28 ADA.IO_EXCEPTIONS.USE_ERROR thrown by Ada.Directories.More_Entries WBull
2016-07-28 11:07 ` AdaMagica

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox