Author |
Topic  |
|
jmurray
3 Posts |
Posted - 02 Jul 2004 : 23:09:36
|
I am getting the following crash in the charting library. I am sure that I have done something wrong, but would appreciate any pointers to help me find the problem.
I am seeing crashes in different places. This one happens after a windows event, when the QC code calls into the MS 2D graphics package.
Thank you,
John
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.ArgumentException: Invalid parameter used. at System.Drawing.Drawing2D.GraphicsPath.get_PathPoints() at com.quinncurtis.chart2dnet.ChartShape.GetShapeOrigin(GraphicsPath s) at com.quinncurtis.chart2dnet.ChartShape.ConvertShape(GraphicsPath s) at com.quinncurtis.chart2dnet.ChartShape.DrawShape(Graphics g2, GraphicsPath path) at com.quinncurtis.chart2dnet.ChartShape.Draw(Graphics g2) at com.quinncurtis.chart2dnet.ChartView.DrawObject(Graphics g2, GraphObj graphobject1, Rectangle2D viewrect) at com.quinncurtis.chart2dnet.ChartView.Draw(Graphics g2) at com.quinncurtis.chart2dnet.ChartView.OnPaint(PaintEventArgs pe) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- RAMarketCurrentIndicator Assembly Version: 1.0.1644.34298 Win32 Version: 1.0.1644.34298 CodeBase: file:///C:/Program%20Files/RAMarketCurrentIndicator/RAMarketCurrentIndicator.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- TalTrade.Toolkit.ClientAdapter Assembly Version: 0.8.21.2 Win32 Version: 0, 8, 21, 2 CodeBase: file:///c:/winnt/assembly/gac/taltrade.toolkit.clientadapter/0.8.21.2__cb44bdaa5e4ab9d5/taltrade.toolkit.clientadapter.dll ---------------------------------------- TalTrade.Toolkit Assembly Version: 0.8.21.1 Win32 Version: 0, 8, 21, 1 CodeBase: file:///c:/winnt/assembly/gac/taltrade.toolkit/0.8.21.1__cb44bdaa5e4ab9d5/taltrade.toolkit.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- QCChart2DNet Assembly Version: 1.0.1.0 Win32 Version: 1.0.1.0 CodeBase: file:///C:/Program%20Files/RAMarketCurrentIndicator/QCChart2DNet.DLL ---------------------------------------- System.Data Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll ---------------------------------------- System.Xml Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll ---------------------------------------- TalTrade.YPerms Assembly Version: 1.1.1.0 Win32 Version: 1.1.1.0 CodeBase: file:///c:/winnt/assembly/gac/taltrade.yperms/1.1.1.0__aba8a0f5ba06c86f/taltrade.yperms.dll ---------------------------------------- TalTrade.YPermsCOM Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///c:/winnt/assembly/gac/taltrade.ypermscom/1.0.0.0__aba8a0f5ba06c86f/taltrade.ypermscom.dll ---------------------------------------- Microsoft.VisualC Assembly Version: 7.0.5000.0 Win32 Version: 7.10.3052.4 CodeBase: file:///c:/winnt/assembly/gac/microsoft.visualc/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualc.dll ----------------------------------------
************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog.
John Murray |
|
jmurray
3 Posts |
Posted - 02 Jul 2004 : 23:22:19
|
Here is another crash. This one happened during a call from my own code.
07/02/04 20:16:46 -I- : OnAdvise trap:System.InvalidOperationException: The object is currently in use elsewhere. Again, the crash occured when the QC code called into the Windows drawing library. I have not done much windows programming in the past and am anxious for suggestions of where to look.
John
07/02/04 20:16:46 -I- : at System.Drawing.Pen.get_Width() 07/02/04 20:16:46 -I- : at com.quinncurtis.chart2dnet.ChartPens.GetPen(Color pencolor, Single penwidth) 07/02/04 20:16:46 -I- : at com.quinncurtis.chart2dnet.ChartAttribute.UpdateAttributes() 07/02/04 20:16:46 -I- : at com.quinncurtis.chart2dnet.ChartAttribute.SetColor(Color rgbcolor) 07/02/04 20:16:46 -I- : at com.quinncurtis.chart2dnet.GraphObj.SetColor(Color rgbcolor) 07/02/04 20:16:46 -I- : at RisingIndicator.UserControl1.AddXminorGrid() 07/02/04 20:16:46 -I- : at RisingIndicator.UserControl1.InitializeChart(Settings settingsArg) 07/02/04 20:16:46 -I- : at RisingIndicator.UserControl1.RebuildChart(Int32 maxIndex, Int64[] tickArray, Double[,] candleValues, Double[,] currentValues, Settings settingsArg) 07/02/04 20:16:46 -I- : at RisingIndicator.Form1.UpdateAndSend(Boolean rebuild) 07/02/04 20:16:46 -I- : at RisingIndicator.Form1.OnData(Object sender, DataEventArgs e)
|
 |
|
quinncurtis
1164 Posts |
Posted - 03 Jul 2004 : 10:35:34
|
The only thing I can tell from the first error messages is that the error seems to be related to the drawing of specific ChartShape object. Get rid of the ChartShape object in the graph and see if the error goes away.
I have no idea about the error message in your second posting.
Are any of these error reproducible in a simple program ? The most important thing you can do is try and create the simplest possible example program that reproduces the errors. You would want to remove all extraneous code not related to the creation of the graph. Then we might be able to debug the source of that program to determine what the error is. |
 |
|
jmurray
3 Posts |
Posted - 04 Jul 2004 : 02:56:39
|
Thank you for your assistance. It turned out that I was trying to add rectangle with zero height to a chart. Under most circumstances, this did not happen. However, under unusual testing circumstances it did.
John Murray |
 |
|
quinncurtis
1164 Posts |
Posted - 06 Jul 2004 : 09:10:37
|
Thanks for the information. We will look into adding checks to prevent a ChartShape rectangle of 0 size from causing problems like you describe. |
 |
|
|
Topic  |
|
|
|