Page 1 of 1

never ending dll-process

Posted: Mon Dec 06, 2004 11:03 pm
by 9235161
Hi all,

i have tested a short dll for using in IIS. In this dll I use a chart. So good so far, it works fine. If I add a part like this:
assignfile(TXF, 'C:\Test\example.txt');
reset(TXF);
while not EOF(TXF) do
begin
do anything;
end;
closeFile(TXF);
the dll runs and runs and runs .....

If I put this source snippet in a normal app it works fine, but in a webserver app it does not.

I have no idea :(

Can anybody help me???

Greetings
U. Friedrich

Posted: Tue Dec 07, 2004 11:03 am
by Pep
Hi Friedrich,

which error appears ?

Posted: Wed Dec 08, 2004 9:10 am
by 9235161
Hi pep,

the problem above is solved, but I have a new prob.


Here is a small snippet of code that works correct.

ImageStream := TStream;

tmp := TGIFExportFormat.Create;
tmp.Panel := Chart1;
Series1.FillSampleValues(100);
tmp.SaveToStream(ImageStream);


If I change the procedure from "Series1.FillSampleValues" to "Series1.AddXY" it results in a "Access violation at address 00403E2D in module 'hs.exe'. Read of address 00000000 "

Here is the changed code from above.
for i := 0 to 500 do
Series1.AddXY(i,y);

tmp := TGIFExportFormat.Create;
//Series1.FillSampleValues(100);
tmp.Panel := Chart1;
tmp.SaveToStream(ImageStream);
Thank you for help