Page 1 of 1
Problem : TChart stops responding.
Posted: Thu Oct 14, 2010 6:13 pm
by 9530487
I don't have source code that I can give you, but I do have the .TEE file.
If you run the command
TChart1.Import.LoadFromFile(temptee.tee")
And load the attached file, it just hangs indefinitely.
When I construct the graph in my own code, it hangs on the call to SetAutoDraw(TRUE). I saved the .TEE file just before this call.
When it's loaded into VB, it hangs again.
Is there a workaround? And is the .TEE enough for you to work out what the problem is?
Tony.
Re: Problem : TChart stops responding.
Posted: Fri Oct 15, 2010 9:15 am
by narcis
Hi Tony,
Yes, using the tee file I could reproduce the problem and to be able to identify what's going on I converted it to a text file:
Code: Select all
TChart1.Export.ConvertTeeFileToText "c:\temp\temptee.tee", "c:\temp\texttee.tee"
In the text file I found most Pointer.Style properties had corrupted values and failed to load so I removed them.
Then I found the chart just takes some time to load because it's quite big, with lots of series and points but loaded successfully after all. I attach the tee file in text format, does this loads fine at your end? I also attach the file I upload with the VCL version and exported it using this version. Does this makes any difference? Finally, leaving it enough time (not much
) I could load your original file.
Re: Problem : TChart stops responding.
Posted: Fri Oct 15, 2010 10:32 am
by 9530487
In the text file I found most Pointer.Style properties had corrupted values and failed to load so I removed them.
Can you tell me which series had the corrupted pointer styles so I can remove them from my code?
Re: Problem : TChart stops responding.
Posted: Fri Oct 15, 2010 10:39 am
by narcis
Hi Tony,
Sorry, I overwrote the text file so I don't know. You may deduce this from the text file I already attached or from the text file I converted again and which I attach here. You can edit it with notepad, for example, and will see garbled text in some pointer.style settings
Re: Problem : TChart stops responding.
Posted: Fri Oct 15, 2010 3:02 pm
by 9530487
Thanks, found it. Looks like something got corrupted during the save.