Page 1 of 1

TeeChart.IPNGExport.SaveToFile Catastrophic failure

Posted: Wed Apr 14, 2010 6:22 pm
by 6921838
Hi
I know we are running quite an old version (TeeChart Pro v5 ActiveX Control)
But I was after a bit of help as we occasionally getting a Catastrophic failure when executing TeeChart.IPNGExport.SaveToFile (See error message bellow).
It would be impossible to create a demo app as I don’t yet understand what courses it to fail or to succeed with near identical data.

This only happens occasionally, but the bug may have only recently appeared in our code because we upgraded to .net 2.0 and running on server 2008 for the first time.

Have you seen this before, is it a known bug, is there anything I can do to work around it.
Trevor McAlister

General Information
*********************************************
Additional Info:
ExceptionManager.MachineName: R250BATCHBUILD
ExceptionManager.TimeStamp: 13/04/2010 14:52:31
ExceptionManager.FullName: Microsoft.ApplicationBlocks.ExceptionManagement, Version=2500.27.0.0, Culture=neutral, PublicKeyToken=8af1292f2966aa15
ExceptionManager.AppDomainName: /LM/w3svc/1/ROOT/batchweb-1-129156382213425744
ExceptionManager.ThreadIdentity: R250BATCHBUILD\quantumuser
ExceptionManager.WindowsIdentity: R250BATCHBUILD\quantumuser

1) Exception Information
*********************************************
Exception Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147418113
Message: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Data: System.Collections.ListDictionaryInternal
TargetSite: Void SaveToFile(System.String)
HelpLink: NULL
Source: Interop.TeeChart

StackTrace Information
*********************************************
at TeeChart.IPNGExport.SaveToFile(String FileName)
at Yokogawa.UI.Controls.GanttChart.CreateImage(String ImageName) in D:\VSSCODE\Development\Yokogawa.UI.Controls.BatchGantt\BatchGantt.cs:line 924

Re: TeeChart.IPNGExport.SaveToFile Catastrophic failure

Posted: Thu Apr 15, 2010 10:58 am
by yeray
Hi Trevor,

A similar problem was identified and fixed in the past:
http://www.teechart.net/support/viewtop ... File+error

It also looks similar to the following previously discussed issue, where our suggestion wasn't answered
http://www.teechart.net/support/viewtop ... SaveToFile

It will be very helpful if we can reproduce the problem here in a simple example.

Re: TeeChart.IPNGExport.SaveToFile Catastrophic failure

Posted: Thu Apr 15, 2010 3:33 pm
by 6921838
Hi

I had actually read the first article you mentioned but we don’t use the method "RemoveAllCustom" in our code.

Unfortunately I don’t yet understand what courses it to fail or to succeed with near identical data, as it seems to succeed most of the time it’s difficult to catch, and impossible to produce a demo app.

I assume there are no registry settings to turn on advanced logging or something.

Trevor

Re: TeeChart.IPNGExport.SaveToFile Catastrophic failure

Posted: Mon Apr 19, 2010 8:13 am
by yeray
Hi Trevor,

The only thing I can think is that you could try saving your charts to .tee files before exporting to png. Then, when the application crashes, you should have a tee file with the exact data that should allow us to reproduce the problem.