never ending dll-process

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
UFriedrich
Newbie
Newbie
Posts: 9
Joined: Fri Dec 03, 2004 5:00 am
Location: Germany

never ending dll-process

Post by UFriedrich » Mon Dec 06, 2004 11:03 pm

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

Pep
Site Admin
Site Admin
Posts: 3298
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Dec 07, 2004 11:03 am

Hi Friedrich,

which error appears ?

UFriedrich
Newbie
Newbie
Posts: 9
Joined: Fri Dec 03, 2004 5:00 am
Location: Germany

Post by UFriedrich » Wed Dec 08, 2004 9:10 am

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

Post Reply