Reputation: 163
I am getting "I/O error "1785" in my program in
Vcl.FileCtrl.TDirectoryListBox.SetDirectory -> Vcl.FileCtrl.ProcessPath
I cannot find a description in Delphi's Help for this.
Upvotes: 2
Views: 243
Reputation: 125687
From the help file:
All errors other than I/O errors and fatal errors are reported with the error codes returned by the operating system.
As all of the listed I/O errors are in the 100..106
range, and the fatal errors are all in 200..232
, it stands to reason that this is an OS error, and SysErrorMessage(1785)
would give you a description of the error:
The disk media is not recognized. It may not be formatted.
The actual error is ERROR_UNRECOGNIZED_MEDIA
(thanks to @JoachimIsaksson for looking it up so I didn't have to do so).
Upvotes: 3