Exception while accsing Bitmap property

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Vivek
Newbie
Newbie
Posts: 9
Joined: Tue Mar 10, 2009 12:00 am
Contact:

Exception while accsing Bitmap property

Post by Vivek » Sun Mar 22, 2009 2:09 pm

Exception while accessing Bitmap property of Chart, See the call stack below for more details.

Call Stack****************************

at System.Drawing.BufferedGraphicsContext.Dispose(Boolean disposing)
at System.Drawing.BufferedGraphicsContext.Dispose()
at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.Allocate(Graphics targetGraphics, Rectangle targetRectangle)
at Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height, PixelFormat pixelformat)
at Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height)
at Steema.TeeChart.TChart.get_Bitmap()
at Metrino.FastReporter.Common.UI.Controls.BaseChart.GetChartImage() in E:\Project Source Code\Peacock\New VSS DB\Metrino.FastReporter.Common\Metrino.FastReporter.Common.UI.Controls\BaseChart\BaseChart.cs:line 348
at Metrino.FastReporter.CDPMDPlug.CDChart.GetImageOfGraph()
at Metrino.FastReporter.CDPMDPlug.ReportDataBaseBuilder.getCdGraphImage(IMeasurement measurement)
at Metrino.FastReporter.CDPMDPlug.ReportDataBaseBuilder.buildGeneralInformationCD(DataRow row, IMeasurement measurement, Int32 measurementID)
at Metrino.FastReporter.CDPMDPlug.ReportDataBaseBuilder.fillCDInformation(DataSet ds, IMeasurement measurement, Int32 measurementID)
at Metrino.FastReporter.CDPMDPlug.ReportDataBaseBuilder.BuildDB(List`1 measurements, DataSet ds)
at Metrino.FastReporter.CDPMDPlug.PlugServices.BuildReportDataBase(List`1 measurements, DataSet ds)
at Metrino.FastReporter.HostApplication.ReportingServices.ReportGenerator.buildDataSetPlug() in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\ReportingServices\ReportGenerator.cs:line 92
at Metrino.FastReporter.HostApplication.ReportingServices.ReportGenerator.GerReport(String reportTemplatePath) in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\ReportingServices\ReportGenerator.cs:line 39
at Metrino.FastReporter.HostApplication.UIConroller.ViewController.loadReportViewer(String reportPath) in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\UIConroller\ViewController.cs:line 1225
at Metrino.FastReporter.HostApplication.UIConroller.ViewController.showSelectTemplateForm(String reportPath) in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\UIConroller\ViewController.cs:line 1215
at Metrino.FastReporter.HostApplication.UIConroller.ViewController.PrintPreview(Boolean isSeletTemplateButtonClicked) in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\UIConroller\ViewController.cs:line 1197
at Metrino.FastReporter.HostApplication.UIConroller.ViewController.btnPrintPreview_Click(Object sender, EventArgs e) in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\UIConroller\ViewController.cs:line 1002
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Metrino.FastReporter.HostApplication.Program.Main(String[] args) in E:\Project Source Code\Peacock\New VSS DB\FastReporter2\UI\Program.cs:line 86

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 Mar 23, 2009 3:42 pm

Hi Vivek,

Can 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

Post Reply