Re: Problem with generated PDF files

2002-02-14 Thread Jochen . Maes


if you work with java, you should let your applicationserver make a
temporarely file it self... then the minute you exit the servlet the file
will be deleted...

SeJo



Jochen Maes
EDP departement
Programmeur

KBC-Securities
Havenlaan 16
1080 Brussel

Tel : 02/429.96.81
Fax : 02/429.17.48
E-mail : [EMAIL PROTECTED]

**

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. KBC Securities
reserves the right to monitor all e-mail communications through its
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of any such entity.
**


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




RE: Problem with generated PDF files

2002-02-14 Thread Phillips Tony

That sounds reasonable but I'm not running as a servlet, it's a back end
server process... perhaps I still need to create a temporary (empty) PDF
which I own ?

Tony

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Sent: 14 February 2002 10:53
 To: [EMAIL PROTECTED]
 Subject: Re: Problem with generated PDF files
 
 
 
 if you work with java, you should let your applicationserver make a
 temporarely file it self... then the minute you exit the 
 servlet the file
 will be deleted...
 
 SeJo
 
 
 
 Jochen Maes
 EDP departement
 Programmeur
 
 KBC-Securities
 Havenlaan 16
 1080 Brussel
 
 Tel : 02/429.96.81
 Fax : 02/429.17.48
 E-mail : [EMAIL PROTECTED]
 
 **
 **
 **
 
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. 
 You must not,
 directly or indirectly, use, disclose, distribute, print, or 
 copy any part
 of this message if you are not the intended recipient. KBC Securities
 reserves the right to monitor all e-mail communications through its
 networks. Any views expressed in this message are those of 
 the individual
 sender, except where the message states otherwise and the sender is
 authorised to state them to be the views of any such entity.
 **
 **
 **
 
 
 -
 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]




Re: Problem with generated PDF files

2002-02-14 Thread James Richardson

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]




RE: Problem with generated PDF files

2002-02-14 Thread Phillips Tony

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]




Re: Problem with generated PDF files

2002-02-14 Thread James Richardson

Phillips Tony wrote:

 
 
 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
 


Not that this is a FOP related thing. But forcing a gc is the _wrong_ 
way to do it. just close the file when you are done.

most applications should never touch anything to do with gc.

Cheers

James





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