use named locks (with the same name, usually the name of the file or
something) around both the delete file action and the cfx_image call.

deleting occasionally throws this up, where the filesystem hasn't had a
chance to delete the file before something else affects that file. using the
locks will prevent this.

> -----Original Message-----
> From: Giles Roadnight [mailto:[EMAIL PROTECTED]]
> Sent: 20 November 2002 10:06
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] CFfile and CFX_image
> 
> 
> hi Guys
> 
> I ma having some trouble with CFX_image and cffile. I am 
> using cfx_image to
> generate thumbnails of images that are uplaoided to a server. 
> If the image
> is already there it is overwritten and a new thumbnail is produced. If
> CFX_image is told to output the image to a file that already 
> exists I get an
> error. Because of this I do a iffileexists and then delete 
> the thumbnail
> before the cfx_image is deleted.
> 
> The problem is that for some reason the image is not deleted 
> straight away
> so I get an error.
> 
> Does anyone have any insight into this or do I just have to 
> do a cfcatch and
> loop until it works?
> 
> Thanks
> 
> Giles
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to