ZTree.com  | ZEN  | About...  

 Index   Back

Discuss - /API   [BETA]

By: Kim Henkel     Riverview, FL  
Date: Nov 11,2010 at 21:31
In Response to: More Info (Oliver Pretzel)

> 1. When ZTree hangs only the spinner keeps going. Nothing in the
> display gets updated (eg the elapsed time stays the same).

Can you watch the size of the (new) target file while this is happening?
The copy operation is done on the main thread, so until the last write request completes, nothing else is going to happen in the display.
So while it appears to be hung, I'm pretty sure it's simply waiting for Windows to come back from the last write operation. This is probably then a buffering/caching issue.

> 2. If I do manage to kill ZTree without removing the stick (with the
> task manager - which takes a long time over a minute) then the delayed
> write failure message comes up and the stick's drive becomes invalid
> until the stick is removed and reinserted.
>
> 3. I have checked that the policy setting for the stick is "optimize
> for quick removal" so writes should not be cached.

Can you see what happens with write caching enabled?

> As mentioned in the main post there are no problems whatsoever when
> using the /API switch.

I'd really like to make /API the default, and do away with ZTree's internal copy function.
It was necessary back in the days of Win9x (for allowing interruption, and progress reporting), and comparable performance-wise to the API function, but I think those days are over.
The only 'advantage' ZTree's copy function has now is the preservation of creation and last-access timestamps - but this could easily be done after the use of the API copy function.
And of course Alternate Data Streams would be copied by default - I wonder if anyone is not using /API today specifically to avoid this.


Kim

1,818 views      
Thread locked
 

Messages in this Thread

 
96,646 Postings in 12,231 Threads, 350 registered users, 62 users online (1 registered, 61 guests)
Index | Admin contact |   Forum Time: Apr 28, 2024 - 4:48 am UTC  |  Hits:63,109,418  (4,088 Today )
RSS Feed