Plus, one could follow the good practice of including the process ID in the file name where there is one available (on OS X of course; don't know about windows).

Cheers,
   Frank+++

Am 14.12.2006 um 00:03 schrieb Charles Yeomans:
...

try and create a file and if it already exists move on to another "unique" name
...
Actually, it's even faster to do something like

if TemporaryFolder <> nil then
return TemporaryFolder.Child("temp" + Format(10000000000*Rnd, "#") + ".html"
else
  return nil
end if

Assuming TemporaryFolder <> nil, a few iterations can push the probability of failure below that of a hardware error.

--

Günter Schmidt & Co. oHG
Frank Bitterlich             eMail: [EMAIL PROTECTED]
Ben-Gurion-Ring 21           WWW:   http://www.gsco.de/
D-60437 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28


_______________________________________________
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