Yes, I noticed that there is not an error in my case, just a test if  
the file is closed. I just do an another test, first read a file then  
write over the file .. 100 000 times, I have tested 3-times (300 000  
read and write), no fails .. With Spotlight "ON"

So it looks I have to fight more with this..

Thanks for all answers in this case..

Sven E

----
    for x = 1 to 100000

     if f <> nil then

       WriteToFile = f.CreateTextFile
       if WriteToFile <> nil then
         WriteToFile.Write( s )
         WriteToFile.Close
         WriteToFile.Write("HJJJA")
       else
         MsgBox("error!")
       end if
     else
       MsgBox "NIL!"
     end if ' nil


     if f <> nil then

       ReadFile = f.OpenAsTextFile
       if ReadFile <> nil then
         p = ReadFile.ReadAll
         ReadFile.Close
       else
         MsgBox "Error Read File"
       end if

     else
       MsgBox "NIL!"
     end if
   next x

  ----------------




On 2007-05-04, at 00:21, Norman Palardy wrote:

>
>
> As the one bug report you pointed out makes note of writing AFTER he
> lose gets NO error but should
>
> If you set WriteToFile to NIL instead of closing it then you'd get an
> exception which is closer to what should happen
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to