or
When I launch a crossTab generation and exit it once generated, my application does not fully release the memory, even if I call « GC.Collect () » or Dispose().
Elements/processes are still kept in memory, about 300MO.
When I look into the task manager and make a comparison of the free available memory before launching the telerik component functionnality and after using it , I can detect that 300MO are not released.
So i suppose this is linked to the telerik component.
As a result I have to exit my app before using the telerik component, otherwise I systematically get a crash.
private void textBox1_ItemDataBound(object sender, EventArgs e)
{
Telerik.Reporting.Processing.TextBox textBox
= (Telerik.Reporting.Processing.TextBox)sender;
Telerik.Reporting.Processing.Report report = textBox.Report;
Telerik.Reporting.Processing.DetailSection detailSection
= Telerik.Reporting.Processing.DetailSection)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(report, "detail");
Telerik.Reporting.Processing.SubReport subReportFuel
= (Telerik.Reporting.Processing.SubReport)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(detailSection, "subReportFuel");
Telerik.Reporting.Processing.TextBox subReportTextboxFuelVolume
= (Telerik.Reporting.Processing.TextBox)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(subReportFuel, "volumeSumFunctionTextBox");
textBox.Value = subReportTextboxFuelVolume.Value;
}