Exception and endlessly growing designer generated code in InitializeComponent when using Steema TeeChart for .NET 2013 4.1.2013.05280 - What to do?

拥有回忆 提交于 2019-12-23 04:24:31

问题


When using a Gantt series in a TeeChart control of Steema TeeChart for .NET 2013 4.1.2013.05280 in VS2010, the following exception occurs within the chart after saving and reopening the parent form.

Several tries to open the form later, the Designer magically works again, but it has added an awful lot of new resources to the form's .resx file (and accesses them in InitializeComponent respectively).

This behavior can be reproduced with any application using a simple Windows Form, that contains a TeeChart control and a default gantt series with random values. I fear this is a followup bug to TF02016535, that has been fixed in this build.


回答1:


Thanks for reporting. I could reproduce the issue and added it (TF02016626) to the defect list to be fixed for next releases. We have found that in VS2012 saving the form (form only, not the complete project) before closing it doesn't produce the exception. Alternatively, the only solution I can think of for now is using Gantt series at run-time, for example:

  Steema.TeeChart.Styles.Gantt gantt1 = new Steema.TeeChart.Styles.Gantt(tChart1.Chart);

  gantt1.FillSampleValues();


来源:https://stackoverflow.com/questions/17345334/exception-and-endlessly-growing-designer-generated-code-in-initializecomponent-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!