realbasic-nug
[Top] [All Lists]

Re: [Win32] FolderItem is Valid, TextInputStream is Nil

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: [Win32] FolderItem is Valid, TextInputStream is Nil
From: David Glass <dglass at graymattercomputing dot com>
Date: Thu, 31 Aug 2006 08:59:13 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <8B7AAEB3-BB31-451F-98B1-814CB72B14B3 at graymattercomputing dot com> <DC675E45-8443-4071-B865-BEFE33699E71 at nc dot rr dot com>

On Aug 31, 2006, at 08:15, Christian Miller wrote:

On Aug 31, 2006, at 1:20 AM, David Glass wrote:
I don't know if it matters, but the entire process involves a download from an FTP server, and goes like this:

I've had a similar problem with a Zip file. In my case, the file seemed to be there but was always corrupted. I ended up switching to using the HTTP socket and all was well. Thankfully the client didn't mind the bandwidth.

Unfortunately, that isn't an option for me.

I'm still unclear as to why this is a problem only on Windows. I did find what I think is the proper definition of error code 32:

The process cannot access the file because it is being used by another process.

I'm just not understanding what process has grabbed the file.

Also of possible interest, .Exists is True, .IsReadable and .IsWriteable are both False, Rb reports the .Length correctly, and .Locked is False.

Operating under the possibility that the thread that handles the downloading had not released the file, I changed some stuff around so all the downloading happens in a thread, and all the applying happens outside of the thread (after it has completed). This didn't have the hoped for result.

--
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>


<Prev in Thread] Current Thread [Next in Thread>