Sorry this gave a me access violation error at an address in 'ntdll.dll'

Eion

> -----Original Message-----
> From: Carl Reynolds [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, 29 August 2000 13:24
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:  Machine Cache
> 
> Try putting in
> 
> WritePrivateProfileString('', '', '', '');
> 
> after the PDF file is created.  This should flush the cache.
> 
> Cheers,
> Carl
> 
> -----Original Message-----
> From: Eion McIntosh (CHCH) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 29 August 2000 8:29 AM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Machine Cache
> 
> 
> Hi
> 
> We have a program which creates a PDF file for sending to clients via
> email.
> We have a small problem with a timing issue and believe it is related
> to
> the flushing of the machine 
> cache.
> The program executes fine and immediately after the report has created
> the PDF file it is
> attached to a email and sent to a client. The problem is that
> sometimes
> the attached 
> PDF file is empty. We put a check for file just before it is attached
> to
> the message and
> quite a number of times it shows that it doesn't exist. 
> We've just added a counter and done a IF FILEEXISTS(pdf) on each loop
> and the counter
> and get up to anywhere from 1 to 3000 before the file is physically
> created on disk.
> 
> Does anyone know how to get around this without having to basically
> having to pause the program
> or how it get the machine to flush the cache so the file is created
> before we want to use it?
> 
> Regards
> Eion McIntosh
> 
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to