Page 1 of 1

finding out what is the error

Posted: Sun Feb 24, 2008 9:38 am
by 9527011
Hello,

We are creating a teechart using MS VisualStudio 2005/c++ and teechart ocx version 7.0.1.3.

We are using the export command a few times like so:
chart->Export->SaveToFile(pathName.c_str());
we pass the same name each time. "chart" is a teechart object.

after some time we get a com exception with the error: catastrofic error
for this command.

How can we find out what was the problem and why the command failed?
The file is not set to Read only so this is not the error.
does teechart save latest error somewhere?

Thanks.
Zoe

Posted: Mon Feb 25, 2008 11:29 am
by narcis
Hi Zoe,

No, TeeChart doesn't keep an error log.

Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Mon Feb 25, 2008 11:34 am
by 9527011
Unfortunatly I cannot send an example. We managed to pinpoint the exact command where the failure occurs but since this problem occurs randomly and we did not manage to pin point the exact scenario.

Can you suggest ways to debug this command to find out what is the problem.

Posted: Tue Mar 04, 2008 10:18 am
by Pep
Hi,

you could try checking the path where the file is saved using similar code like this :

Code: Select all

        With tChart1.Export
            .asJPEG.SaveToFile(Server.MapPath((Session("username")) &
"21.jpeg"))
            Label1.Text = Server.MapPath((Session("username")) & "21.jpeg")
        End With
This could help to know if the error happens with specific path, filename, etc..