In the morning I will try a different approach.  I plan to change the
program to use double buffering.  Basically I will alternate between writing
the HTML documents to Temp.html and Temp1.html, hopefully giving the
application enough time to settle down and avoid the "in use" problem.  I
will let you know how it goes tomorrow.

(Back in the late 60s and 70s I used to have to do a lot of that kind of
coding when writing in assembly language, but I thought we were beyond that!
:-) )

Ed

-----Original Message-----
From: Sven E Olsson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 12, 2006 2:38 PM
To: REALbasic NUG
Subject: Re: CreateTextFile Failure Problem


On 2006-12-12, at 21:25, 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
>

It is NOT Locked, it is "in use" .. Perhaps the HTMLviewer have not  
closed it yet or "never" close it..

Sven E


_______________________________________________
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