The next document is stored internally in memory, so that is not the
problem.

Ed

-----Original Message-----
From: Norman Palardy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 12, 2006 2:36 PM
To: REALbasic NUG
Subject: Re: CreateTextFile Failure Problem


On Dec 12, 2006, at 1:25 PM, Ed Harris wrote:

> I have been trying various things - so far with no success.  The issue
> appears to be more complex than I thought.  The application  
> displays html
> documents sequentially when the user clicks a "Next" button.  When the
> button is clicked, the application grabs the next html document,  
> writes it
> to the Temp.html file, then displays it in an html viewer control.
>
> The problem arises if the user clicks the "Next" button quickly (on  
> a slow
> machine), in which case the application tries to display the next  
> document.
> It may be that the html viewer control is still in the process of  
> displaying
> the document at the same time the code is trying to write the next  
> html
> file.  I am trying a number of things, including disallowing the  
> "next"
> button to be clicked until the html DocumentComplete event fires,  
> but so far
> no good.
>
> At the point that the CreateTextFile method returns a nil value,  
> the folder
> item does not show as locked and read and write are both enabled,  
> so I am
> not sure why the file is considered locked.
>
> Ed

How do you get the next document ?

If you use an HTTP Socket to download a file & save it and then show  
what you just downloaded it's possible the download process has the  
file locked until the download finishes
_______________________________________________
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>




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

Reply via email to