Re: Out of system resources
- From: "Bjørge" <bjorge@xxxxxxx>
- Date: Thu, 16 Nov 2006 23:25:28 +0100
Tom de Neef wrote:
I process JPG files in a separate thread. One file after another.
Sometimes I get this error "Out of system resources". But the files
aren't particularly big (< 100 kb), all objects involved are properly
freed and the error is not reproducible. But when it happens, it
happens always at the same place:
JPGimage:=TjpegImage.Create;
try
JPGimage.Assign(bitmap);
JPGimage.CompressionQuality:=60;
JPGimage.SaveToFile(destinationFile); //<<<<<< here
except
end;
JPGimage.free
The program counter is at the SaveToFile line when the error is
trapped. I've learned that the error is then in the previous
statement. But that doesn't make sense to me.
Any suggestions?
I believe you'll have to post a little more of your code...the
Thread.Execute; method, for instance.
--
Bjørge
bjorge@xxxxxxxxxxxx
.
- Follow-Ups:
- Re: Out of system resources
- From: Tom de Neef
- Re: Out of system resources
- References:
- Out of system resources
- From: Tom de Neef
- Out of system resources
- Prev by Date: Re: Learning recursion with hailstone seqence
- Next by Date: Re: Out of system resources
- Previous by thread: Out of system resources
- Next by thread: Re: Out of system resources
- Index(es):
Relevant Pages |