Xamarin Studio: Preferences > Projects > SDK Locations > Apple > "Xamarin.iOS SDK" box? - xamarin.ios

What are you supposed to put in the Preferences > Projects > SDK Locations > Apple > "Xamarin.iOS SDK" box?
When I leave it blank, I get a green checkbox saying it found the location. However, when I try to open a project, I get:
System.NotSupportedException: Could not parse iOS version from SDK path: Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
at MonoTouch.Hosting.IosSystem..ctor (System.String sdkPath, DeviceTrait device, MonoTouch.Hosting.Capabilities capabilities) [0x000f4] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/IosSystem.cs:184
at MonoTouch.Hosting.IosSystem..ctor (System.String sdkPath, DeviceTrait device) [0x00000] in <filename unknown>:0
at MonoTouch.Design.Client.PooledConnectionProvider+<GetConnection>c__AnonStorey51.<>m__10B () [0x00021] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:33
at MonoTouch.Design.Client.PooledConnectionProvider+Pool.Acquire () [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:97
at MonoTouch.Design.Client.PooledConnectionProvider+Pool..ctor (Int32 count, System.Func`1 acquire) [0x00020] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:81
at MonoTouch.Design.Client.PooledConnectionProvider.GetConnection (DeviceTrait device) [0x0003d] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:29
at MonoTouch.Design.Client.IPhoneDesignerService.PrefillConnectionPool (System.String sdkPath, TargetDevice projectTargetDevice) [0x0001a] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerService.cs:82
at MonoTouch.Design.Client.IPhoneDesignerService.IncrementOpenProjectCount (System.String sdkPath, Int32 projectTargetDevice) [0x0004c] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerService.cs:102
at MonoDevelop.IPhone.IPhoneProject.OnEndLoad () [0x0003c] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:275
at MonoDevelop.Projects.SolutionItem.MonoDevelop.Projects.ILoadController.EndLoad () [0x0000e] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs:877
at MonoDevelop.Projects.Extensions.LoadOperation.End () [0x00019] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/ProjectExtensionUtil.cs:138
at MonoDevelop.Projects.Extensions.ProjectExtensionUtil.EndLoadOperation () [0x00042] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/ProjectExtensionUtil.cs:85
at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.ReadFile (System.String fileName, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, IProgressMonitor monitor) [0x0006e] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/SlnFileFormat.cs:652
at MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat.ReadFile (FilePath file, System.Type expectedType, IProgressMonitor monitor) [0x00017] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildFileFormat.cs:166
at MonoDevelop.Projects.ProjectService.ReadFile (IProgressMonitor monitor, System.String file, System.Type expectedType, MonoDevelop.Projects.FileFormat& format) [0x0002d] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:310
at MonoDevelop.Projects.ProjectService.InternalReadWorkspaceItem (System.String file, IProgressMonitor monitor) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:282
at MonoDevelop.Projects.DefaultProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:677
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/addins/MonoDevelop.Autotools/MakefileProjectServiceExtension.cs:48
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:108
at MonoDevelop.Projects.ProjectService.ReadWorkspaceItem (IProgressMonitor monitor, System.String file) [0x00027] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:261
at MonoDevelop.Ide.RootWorkspace.BackgroundLoadWorkspace (IProgressMonitor monitor, System.String filename, Boolean loadPreferences, Boolean reloading) [0x00163] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/33f01126/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:593

You might have a corrupted install of Xcode and need to (uninstall then) re-install it. Try changing it to /Developer/MonoTouch/ and see if that works. I tried that and also leaving it blank and they both gave a green arrow and allowed me to open a project.
EDIT:
I think this is a problem with your Xcode/iOS SDK installation and not your Xamarin.iOS installation. If you "Show Contents" to the Xcode.app that you are referencing, and then navigate: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ then you should see an iOS specific sdk folder. Mine is named: iPhoneSimulator6.1.sdk. I'm not sure the exact method it uses to parse the iOS version but there should be a SDKSettings.plist file that has a "Version" entry in it. That seems the most logical to me.

Related

PostFileWithRequest error since using Monodroid PCL

I'm having a problem with using the Monodroid PCL libraries. All calls are working except this one:
client.PostFileWithRequest<DtoResponse>("createimage", ms, fileName, new Dto{ Id = id});
The error is as follows:
Object reference not set to an instance of an object at ServiceStack.Pcl.StringEqualityComparer.GetHashCode (System.String obj) [0x00000] in <filename unknown>:0
at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.NameObjectCollectionBase.FindFirstMatchedItem (System.String name) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.NameObjectCollectionBase.BaseGet (System.String name) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.NameValueCollection.Add (System.String name, System.String value) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.HttpUtility.ParseQueryString (System.String query, System.Text.Encoding encoding, ServiceStack.Pcl.NameValueCollection result) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.HttpUtility.ParseQueryString (System.String query, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.HttpUtility.ParseQueryString (System.String query) [0x00000] in <filename unknown>:0
at ServiceStack.AndroidPclExportClient.ParseQueryString (System.String query) [0x00000] in <filename unknown>:0
at ServiceStack.ServiceClientBase+<>c__DisplayClass1b`1[Lodestone.Pcl.Infrastucture.Responses.ChildImage.ChildImageResponse].<PostFileWithRequest>b__18 () [0x00000] in <filename unknown>:0
at ServiceStack.ServiceClientBase.PostFileWithRequest[ChildImageResponse] (System.String relativeOrAbsoluteUrl, System.IO.Stream fileToUpload, System.String fileName, System.Object request, System.String fieldName) [0x00000] in <filename unknown>:0 "
We didn't have this problem prior to this. We were using the 3.9.71 monodroid compiled dlls.They were not PCL. This has only stated with the v4 PCL versions.Has anyone encountered this before and how did you solve it?
A fix for this issue has been deployed to MyGet:
https://github.com/ServiceStack/ServiceStack/wiki/MyGet
Available in the next v4.0.16+ release on NuGet.

System.ArgumentNullException: missing source event info in MvxWeakEventSubscription

We are using data binding in our Xamarin.IOS project using MvvmCross(Hot Tuna version) as specified in the sample app “N-39-CrossLight-Touch”.
The sample app as well as our project works fine on simulator(IOS7) but on device(IOS7) it throws the below exception while binding.
System.ArgumentNullException: missing source event info in
MvxWeakEventSubscription Parameter name: sourceEventInfo at
Cirrious.CrossCore.WeakSubscription.MvxWeakEventSubscription2[System.ComponentModel.INotifyPropertyChanged,System.ComponentModel.PropertyChangedEventArgs]..ctor
(INotifyPropertyChanged source, System.Reflection.EventInfo
sourceEventInfo, System.EventHandler1 targetEventHandler) [0x00000] in
:0 at
Cirrious.CrossCore.WeakSubscription.MvxNotifyPropertyChangedEventSubscription..ctor
(INotifyPropertyChanged source, System.EventHandler1
targetEventHandler) [0x00000] in :0 at
Cirrious.CrossCore.WeakSubscription.MvxWeakSubscriptionExtensionMethods.WeakSubscribe
(INotifyPropertyChanged source, System.EventHandler1 eventHandler)
[0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.MvxPropertyInfoSourceBinding..ctor
(System.Object source, System.Reflection.PropertyInfo propertyInfo)
[0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Leaf.MvxLeafPropertyInfoSourceBinding..ctor
(System.Object source, System.Reflection.PropertyInfo propertyInfo)
[0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Leaf.MvxSimpleLeafPropertyInfoSourceBinding..ctor
(System.Object source, System.Reflection.PropertyInfo propertyInfo)
[0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Construction.MvxPropertySourceBindingFactoryExtension.CreateLeafBinding
(System.Object source,
Cirrious.MvvmCross.Binding.Parse.PropertyPath.PropertyTokens.MvxPropertyToken
propertyToken) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Construction.MvxPropertySourceBindingFactoryExtension.TryCreateBinding
(System.Object source,
Cirrious.MvvmCross.Binding.Parse.PropertyPath.PropertyTokens.MvxPropertyToken
currentToken, System.Collections.Generic.List1 remainingTokens,
IMvxSourceBinding& result) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Construction.MvxSourceBindingFactory.TryCreateBindingFromExtensions
(System.Object source,
Cirrious.MvvmCross.Binding.Parse.PropertyPath.PropertyTokens.MvxPropertyToken
propertyToken, System.Collections.Generic.List1 remainingTokens,
IMvxSourceBinding& result) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Construction.MvxSourceBindingFactory.CreateBinding
(System.Object source, IList1 tokens) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.Source.Construction.MvxSourceBindingFactory.CreateBinding
(System.Object source, System.String combinedPropertyName) [0x00000]
in :0 at
Cirrious.MvvmCross.Binding.Bindings.SourceSteps.MvxPathSourceStep.OnDataContextChanged
() [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.SourceSteps.MvxSourceStep.set_DataContext
(System.Object value) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.MvxFullBinding.CreateSourceBinding
(System.Object source) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.Bindings.MvxFullBinding..ctor
(Cirrious.MvvmCross.Binding.MvxBindingRequest bindingRequest)
[0x00000] in :0 at
Cirrious.MvvmCross.Binding.Binders.MvxFromTextBinder.BindSingle
(Cirrious.MvvmCross.Binding.MvxBindingRequest bindingRequest)
[0x00000] in :0 at
Cirrious.MvvmCross.Binding.Binders.MvxFromTextBinder+<>c_DisplayClass1.b_0
(Cirrious.MvvmCross.Binding.Bindings.MvxBindingDescription
description) [0x00000] in :0 at
System.Linq.Enumerable+c__Iterator102[Cirrious.MvvmCross.Binding.Bindings.MvxBindingDescription,Cirrious.MvvmCross.Binding.Bindings.IMvxUpdateableBinding].MoveNext
() [0x00000] in :0 at
Cirrious.MvvmCross.Binding.BindingContext.MvxBindingContextOwnerExtensions.AddBindings
(IMvxBindingContextOwner view, IEnumerable1 bindings, System.Object
clearKey) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.BindingContext.MvxBindingContextOwnerExtensions.AddBindings
(IMvxBindingContextOwner view, System.Object target, IEnumerable1
bindingDescriptions, System.Object clearKey) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.BindingContext.MvxBindingContextOwnerExtensions.AddBinding
(IMvxBindingContextOwner view, System.Object target,
Cirrious.MvvmCross.Binding.Bindings.MvxBindingDescription
bindingDescription, System.Object clearKey) [0x00000] in :0 at
Cirrious.MvvmCross.Binding.BindingContext.MvxBaseFluentBindingDescription1[MonoTouch.UIKit.UITextField].Apply
() [0x00000] in :0 at
Cirrious.MvvmCross.Binding.BindingContext.MvxFluentBindingDescriptionSet2[CrossLightTouch.MyViewController,CrossLightTouch.ViewModels.MyViewModel].Apply
() [0x00000] in :0 at CrossLightTouch.MyViewController.ViewDidLoad ()
[0x0024f] in
/Users/admin/Downloads/N-39-CrossLight-Touch/CrossLightTouch/MyViewController.cs:81
at at (wrapper managed-to-native)
MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr) at
MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x00008] in
/Developer/MonoTouch/Source/monotouch/src/UIKit/.pp-UIWindow.g.cs:129
at CrossLightTouch.AppDelegate.FinishedLaunching
(MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary
options) [0x00042] in
/Users/admin/Downloads/N-39-CrossLight-Touch/CrossLightTouch/AppDelegate.cs:25
at 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) [0x0004c] in
/Developer/MonoTouch/Source/monotouch/src/UIKit/.pp-UIApplication.cs:38
at CrossLightTouch.Application.Main (System.String[] args) [0x00008]
in
/Users/admin/Downloads/N-39-CrossLight-Touch/CrossLightTouch/Main.cs:17
By setting the IOS build options -> Link Behavior -> Don’t link , it works on device as expected, but the binary size has been doubled.
You can reproduce this issue with “N-39-CrossLight-Touch” sample.
Is there a fix or alternative for this?
If you don't already have a LinkerPleaseInclude file, copy the one from here into your project:
https://github.com/MvvmCross/MvvmCross/blob/6ab1baa9ca128921208efa994890039edf398474/TestProjects/Android-Support/Fragments/Example.Droid/LinkerPleaseInclude.cs
Also, add the following line to the Include(TextView text) method:
text.AfterTextChanged += (sender, args) => text.Text = "" + text.Text;
If that doesn't solve it, look for other events that may be used in the Mvx bindings and add those to the LinkerPleaseInclude file.
This issue is caused by the dynamic nature of Mvx binding on Android. Because the bindings are resolved at runtime, the Xamarin linker thinks the UI events they reference are not being used so they are removed from the final build. Adding references in the LinkerPleaseInclude file forces them to be included.

How do you do a command line build of a Xamarin.iOS project?

I've got a working Xamarin.iOS project, using 4.1.9 (on the Alpha channel).
How do I build it from the command line (not from inside Xamarin Studio)? I tried mdtool and that produced:
james#retina:~/svox_workspace/iphone/xamphone$ mono "/Users/james/git/monodevelop/main/build/bin/mdtool.exe" build
INFO [2013-08-21 09:00:03Z]: Add-in loaded: MonoDevelop.Core
MonoDevelop Build Tool
System.DllNotFoundException: libintl.dylib
at (wrapper managed-to-native) Mono.Unix.Catalog:bindtextdomain (intptr,intptr)
at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000] in <filename unknown>:0
at MonoDevelop.Core.GettextCatalog..cctor () [0x00000] in <filename unknown>:0
FATAL ERROR [2013-08-21 09:00:04Z]: System.DllNotFoundException: libintl.dylib
at (wrapper managed-to-native) Mono.Unix.Catalog:gettext (intptr)
at Mono.Unix.Catalog.GetString (System.String s) [0x00000] in <filename unknown>:0
at MonoDevelop.Core.GettextCatalog.GetString (System.String phrase, System.Object arg0) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.ReadFile (System.String fileName, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format, IProgressMonitor monitor) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat.ReadFile (FilePath file, System.Type expectedType, IProgressMonitor monitor) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectService.ReadFile (IProgressMonitor monitor, System.String file, System.Type expectedType, MonoDevelop.Projects.FileFormat& format) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectService.InternalReadWorkspaceItem (System.String file, IProgressMonitor monitor) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.DefaultProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectServiceExtension.LoadWorkspaceItem (IProgressMonitor monitor, System.String fileName) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.ProjectService.ReadWorkspaceItem (IProgressMonitor monitor, System.String file) [0x00000] in <filename unknown>:0
at MonoDevelop.Projects.BuildTool.Run (System.String[] arguments) [0x00000] in <filename unknown>:0
at MonoDevelop.Core.ApplicationService.StartApplication (System.String appId, System.String[] parameters) [0x00000] in <filename unknown>:0
at MonoDevelopProcessHost.Main (System.String[] args) [0x00000] in <filename unknown>:0
Try using /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool or /Applications/MonoDevelop.app/Contents/MacOS/mdtool.
In other words not directly mono on mdtool.exe (which might miss configuration...).

MonoDevelop - illegal character in Path

When ever i try to open a file using MonoDevelop i get this message
System.ArgumentException: Illegal characters in path.
at System.IO.Path.GetExtension (System.String path) [0x00000] in :0
at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.CanReadFile (System.String file, MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat format) [0x00000] in :0
at MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat.CanReadFile (FilePath file, System.Type expectedType) [0x00000] in :0
at MonoDevelop.Projects.FileFormatManager.GetFileFormats (System.String fileName, System.Type expectedType) [0x00000] in :0
at MonoDevelop.Projects.ProjectService.IsWorkspaceItemFileInternal (System.String filename) [0x00000] in :0
at MonoDevelop.Projects.DefaultProjectServiceExtension.IsWorkspaceItemFile (System.String filename) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.IsWorkspaceItemFile (System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectService.IsWorkspaceItemFile (System.String filename) [0x00000] in :0
at MonoDevelop.Ide.IdeApp.OpenFiles (IEnumerable`1 files) [0x00000] in :0
at MonoDevelop.Ide.IdeApp+c_AnonStorey8E.<>m_10F (System.Object , System.EventArgs ) [0x00000] in :0
at (wrapper delegate-invoke) :invoke_void_this__object_EventArgs (object,System.EventArgs)
at MonoDevelop.Ide.IdeApp.Initialize (IProgressMonitor monitor) [0x00000] in :0
at MonoDevelop.Ide.IdeStartup.Run (System.String[] args) [0x00000] in :0
Please Advice
This was a P/Invoke marshalling bug in MD 2.4, fixed in 2.4.1.

EMGU library OPENCV problem with native memroy management - does really work with mono?

we are working in a project involving the use of EMGU and in particoular the SVM functions of OpenCV and we have a problem using Mono on a Ubuntu platform and we don't have this problem on windows. The problem appears when we call the Emgu.CV.ML.SVM.Train method. All the parameters are correct and we canno't debug the wrapped code...
We have tried to increase the Shared Memory and other tricks but it doesn't work.
Do you have any idea?
Thank you
Angelo
Unhandled Exception: Emgu.CV.CvException: OpenCV: requested size is negative or too big
at Emgu.CV.CvInvoke.CvErrorHandler (Int32 status, System.String funcName, System.String errMsg, System.String fileName, Int32 line, IntPtr userData) [0x00000]
at (wrapper native-to-managed) Emgu.CV.CvInvoke:CvErrorHandler (int,intptr,intptr,intptr,int,intptr)
at (wrapper managed-to-native) Emgu.CV.ML.MlInvoke:CvSVMTrain (intptr,intptr,intptr,intptr,intptr,Emgu.CV.ML.Structure.MCvSVMParams)
at Emgu.CV.ML.SVM.Train (Emgu.CV.Matrix`1 trainData, Emgu.CV.Matrix`1 responses, Emgu.CV.Matrix`1 varIdx, Emgu.CV.Matrix`1 sampleIdx, Emgu.CV.ML.SVMParams parameters) [0x00000]
at Segmentation.ImageFeatures.LeafHog.TrainModel (IDictionary`2 dicInOutImage) [0x00000]
at Segmentation.ImageSegmentators.Composite.TrainModel (IDictionary`2 dicInOutImage) [0x00000]
at Segmentation.ImageSegmentators.CompositionMlpRprop.TrainModel (IDictionary`2 dicInOutImage) [0x00000]
at Segmentation.GeneticConfig.ChromoCreator.GetASegmentation (IConfigChromosome configChromosome, IDictionary`2 dicInOutImageTrain) [0x00000]
at Segmentation.GeneticConfig.ConfigChromoProvider.AddChromosomeIfNew (IConfigChromosome chromo) [0x00000]
at Segmentation.GeneticConfig.ConfigChromosome.Generate () [0x00000]
at Segmentation.GeneticConfig.ConfigChromosome..ctor (Int32 chromoLength, IConfigChromoProvider cProvider) [0x00000]
at Segmentation.GeneticConfig.ConfigChromosome.CreateNew () [0x00000]
at AForge.Genetic.Population..ctor (Int32 size, IChromosome ancestor, IFitnessFunction fitnessFunction, ISelectionMethod selectionMethod) [0x00000]
at SegmentationCLI.Program.Main (System.String[] args) [0x00000]

Resources