finding out what is the error

TeeChart for ActiveX, COM and ASP
Post Reply
Oblicore
Newbie
Newbie
Posts: 79
Joined: Fri May 27, 2005 4:00 am

finding out what is the error

Post by Oblicore » Sun Feb 24, 2008 9:38 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 25, 2008 11:29 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Oblicore
Newbie
Newbie
Posts: 79
Joined: Fri May 27, 2005 4:00 am

Post by Oblicore » Mon Feb 25, 2008 11:34 am

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.

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

Post by Pep » Tue Mar 04, 2008 10:18 am

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..

Post Reply