Using 6r3 Std on WinXP...
I have a listbox that I populate with filenames that I get by
iterating through FolderItem.Count. In .Cell I put .Name and
in .CellTag I put the actual FolderItem of each file.
Then, as a way to provide progress feedback to the user, I read the
contents of each file, count the lines and put that number in the
last column of the listbox. So, after populating the listbox any
given row would look like something like this:
FileZZZZZZ.txt | 15 entries
That all works wonderfully, *until* my routine hits the last file.
Then, and only then, does my TextInputStream receive a nil. So on
every file, except the last one in the directory, the following:
tisFileContents = filUpdateFile.ReadAll
gives me a valid stream. No matter how many items are in the
directory, the last one always nils out.
I put a MsgBox str(filUpdateFile.LastErrorCode) after the assignment
and it gave me a 32, but I have no idea what that translates to
(Google didn't not enlighten me).
As noted by the subject, this does *not* occur when running under OS
X 10.4.5, only WinXP (Win32).
----Extra Info-----
I don't know if it matters, but the entire process involves a
download from an FTP server, and goes like this:
1. Generate a list of files to download based on previously retrieved
files and previously sent files
2. Download all the necessary files to a specified folder
3. Process the files in the folder
I suppose it is possible that the last file isn't completely present,
but there is a delay between receiving all the files and processing
through the files to reach the final file; one that I would have
thought would be long enough to account for any 'file not available/
complete/ready' issues. I'd guess the average is probably 15 - 30
seconds, obviously less if there is only one file.
Any insight would be appreciated.
--
David Glass - Gray Matter Computing
graymattercomputing.com - corepos.com
559-303-4915
Apple Certified Help Desk Specialist
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>