[Mono-bugs] [Bug 443770] New: vm crashes on instantiating xceed ChartToolbarControl

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 11 09:38:26 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=443770


           Summary: vm crashes on instantiating xceed ChartToolbarControl
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: x86
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: filpolo at tin.it
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other


When attempting to create an instance of the ChartToolbarControl class from
Xceed Chart, the VM crashes with the following output:

Stacktrace:

  at (wrapper managed-to-native)
System.Windows.Forms.XplatUICarbon.__CFStringMakeConstantString (string)
<0x00004>
  at (wrapper managed-to-native)
System.Windows.Forms.XplatUICarbon.__CFStringMakeConstantString (string)
<0xffffffff>
  at System.Windows.Forms.XplatUICarbon.Text (intptr,string) [0x00021] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs:2045
  at System.Windows.Forms.XplatUICarbon.CreateWindow
(System.Windows.Forms.CreateParams) [0x004ca] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs:1024
  at System.Windows.Forms.XplatUI.CreateWindow
(System.Windows.Forms.CreateParams) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:499
  at System.Windows.Forms.NativeWindow.CreateHandle
(System.Windows.Forms.CreateParams) [0x0000c] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:167
  at System.Windows.Forms.Control.CreateHandle () [0x0003a] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4490
  at System.Windows.Forms.Control.CreateGraphics () [0x0000b] in
/private/tmp/monobuild/build/BUILD/mono-2.0.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3793
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control.CreateGraphics () <0xffffffff>
  at Xceed.Chart.UIControls.PopupItem.RecalcBounds (bool) <0x00063>
  at (wrapper remoting-invoke-with-check)
Xceed.Chart.UIControls.PopupItem.RecalcBounds (bool) <0xffffffff>
  at Xceed.Chart.UIControls.MenuItemCollection.Add
(Xceed.Chart.UIControls.PopupItem) <0x0007d>
  at Xceed.Chart.ChartToolbarControl.AddMenuItem
(Xceed.Chart.UIControls.PopupWindow,string) <0x0005d>
  at Xceed.Chart.ChartToolbarControl..ctor () <0x004f0>
  at (wrapper remoting-invoke-with-check) Xceed.Chart.ChartToolbarControl..ctor
() <0xffffffff>
  at ConsoleApplication1.Program.Main (string[]) <0x0003a>
  at (wrapper runtime-invoke)
ConsoleApplication1.Program.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Abort trap



Here is a sample program to reproduce the problem. You need Xceed Chart to
compile this; an evaluation version can be obtained from www.xceed.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xceed.Chart;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                Xceed.Chart.Licenser.LicenseKey = "(your license key here)";
                var c = new ChartToolbarControl();
            }
            catch (Exception e)
            {
                Console.Out.WriteLine(e.ToString());
            }
            Console.Out.WriteLine("Execution done");
        }
    }
}



When running this program, I'd expect it to always output "Execution done" and
then terminate gracefully (it may or may not display an exception before that).
Instead, on Mono for OSX, I get the crash described above.

The same program runs normally on Windows with either the Mono VM or the
Microsoft VM.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list