mono/monotouch-bindings — Issue #16: CorePlotiOSSample System.ArgumentNullException: Argument cannot be null.
Author: Emasoft
Created: 2011-11-01 21:32:44+00:00
State: open

I've successfully built a new CorePlot.dll with MonoTouch 5.0.1 and the new makefile that make use of the new "LinkWithAttribute". I've tried both the default 0.4 and the 0.9 version of the library. They download and compile fine, but when I use them in the sample, this is the error I get:

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: value
at MonoTouch.CorePlot.CPTTextStyle.set_Color (MonoTouch.CorePlot.CPTColor value) [0x00000] in :0
at CorePlotiOSSample.ScatterPlot.SetupGraph () [0x0000b] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/ScatterPlot.cs:44
at CorePlotiOSSample.ScatterPlot..ctor () [0x00006] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/ScatterPlot.cs:34
at CorePlotiOSSample.AppDelegate.m__0 (MonoTouch.Dialog.RootElement r) [0x00000] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/AppDelegate.cs:63
at MonoTouch.Dialog.RootElement.MakeViewController () [0x00000] in :0
at MonoTouch.Dialog.RootElement.Selected (MonoTouch.Dialog.DialogViewController dvc, MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath path) [0x00000] in :0
at MonoTouch.Dialog.DialogViewController.Selected (MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in :0
at MonoTouch.Dialog.DialogViewController+Source.RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in :0
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
at CorePlotiOSSample.Application.Main (System.String[] args) [0x00000] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/Main.cs:42
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Argument cannot be null.
Parameter name: value
at MonoTouch.CorePlot.CPTTextStyle.set_Color (MonoTouch.CorePlot.CPTColor value) [0x00000] in :0
at CorePlotiOSSample.ScatterPlot.SetupGraph () [0x0000b] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/ScatterPlot.cs:44
at CorePlotiOSSample.ScatterPlot..ctor () [0x00006] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/ScatterPlot.cs:34
at CorePlotiOSSample.AppDelegate.m__0 (MonoTouch.Dialog.RootElement r) [0x00000] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/AppDelegate.cs:63
at MonoTouch.Dialog.RootElement.MakeViewController () [0x00000] in :0
at MonoTouch.Dialog.RootElement.Selected (MonoTouch.Dialog.DialogViewController dvc, MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath path) [0x00000] in :0
at MonoTouch.Dialog.DialogViewController.Selected (MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in :0
at MonoTouch.Dialog.DialogViewController+Source.RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) [0x00000] in :0
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29
at CorePlotiOSSample.Application.Main (System.String[] args) [0x00000] in /Users/Emanuele/Downloads/monobindings/CorePlot/samples/CorePlotiOSSample/CorePlotiOSSample/Main.cs:42