File is in use



I have a report which passes parameters to a calculation routine and
receives a set of results. The report executes this routine many times, the
routine takes about 100 milliseconds to run.

For tracking purposes, every time I run the routine I write the parameters
to a text file using a TStringList. My problem is that rarely I get an
exception from the SaveToFile method telling me that the file is in use.

Has anyone else experienced this? If so do you have a solution?

Thanks


--
Pete
====
ECO Modeler, Audio compression components, DIB graphics controls,
FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/


.



Relevant Pages

  • Re: File is in use
    ... The report executes this routine many times, ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: The front fell off.
    ... I kept thinking of Pete and Dud's routine about the Great Train Robbery....r ... maker of carriage wheels. ...
    (alt.usage.english)
  • Re: Protecting against callbacks queuing up?
    ... Timer pending - cancel first ... It seems like i should cancel the current counting timer, ... Then you set this in the routine just before the after call, ... before exiting the calculation routine, and if it is set when you get into ...
    (comp.lang.python)
  • Re: Lisboxes asp .net ---> Index problems
    ... The listbox actually has a selection ... You have checked for Page.IsPostBack in your page_load routine. ... "pete" wrote in message ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: a faster RNDom PLOT
    ... >routine written by the programmer of Head over Hells (I am not 100% ... That routine was by Jon Ritman, ... calculation routine is quite short - there's probably more comments than ...
    (comp.sys.sinclair)