Win2K/NT... wonder if it's not going out of scope before I pick up the copy, hmm. Perhaps if I force a garbage collect it will help! Something to try...
thanks Tony > -----Original Message----- > From: James Richardson [mailto:[EMAIL PROTECTED]] > Sent: 14 February 2002 11:17 > To: [EMAIL PROTECTED] > Subject: Re: Problem with generated PDF files > > > Phillips Tony wrote: > > > > > > > Hello, > > > > I think I have a problem with my generated PDF files! To > make it easier to > > handle distribution of the output files, I produce the > output PDF in a > > temporary 'working' directory which is fine. I then copy > the output PDF to > > its final destination and, in theory, remove the temporary > (generated) > > file. > > However, the copy is fine but removing the generated file > fails every > > time... > > > > Win or UNIX? - Makes a difference, cos in UNIX you can delete > a file any > time, WIndows, you can't if the file is open (by anything). > > Are you making sure to close any output streams? - In theory > they should > be closed when the object gets garbage collected, but this > may be some > time after the file object goes out of scope (or even never) > > Worth a look anyway. > > HTH > > james > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > **************************************************************************** E-MAIL DISCLAIMER The information in this e-mail and any attachment is confidential. It is intended only for the named recipient(s). If you are not a named recipient please notify the sender immediately and do not disclose the contents to another person or take copies. Although Axxia Systems has taken every reasonable precaution to ensure that any attachment to this e-mail has been checked for viruses, it is strongly recommended that you carry out your own virus check before opening any attachment, as we cannot accept liability for any damage sustained as a result of software virus infection. Axxia Systems reserves the right and senders of messages shall be taken to consent to the monitoring and recording of e-mails addressed to axxia.com. *************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]