monodevelop

MonoTouch Binding Library - EXC_BAD_ACCESS (SIGSEGV)

蹲街弑〆低调 提交于 2019-12-25 05:04:46
问题 My app crashes on my live device only, when I use the Kiip MonoTouch bindings. It works fine on the simulator. Here is part of my stack trace: 0 libsystem_c.dylib 0x30eb293c memset$VARIANT$CortexA8 + 52 1 sample 0x002b5738 GC_clear_stack_inner (misc.c:298) 2 sample 0x002b574c GC_clear_stack_inner (misc.c:299) 3 sample 0x002b574c GC_clear_stack_inner (misc.c:299) 4 sample 0x002b574c GC_clear_stack_inner (misc.c:299) 5 sample 0x002b574c GC_clear_stack_inner (misc.c:299) 6 sample 0x002b574c GC

Occasional SIGSEGV in NSArray binding

时光总嘲笑我的痴心妄想 提交于 2019-12-25 02:58:22
问题 I have the following property that I am binding: @property (nonatomic, readwrite, retain) NSArray* activeTasks; That I bind with the following code: [Export("activeTasks", ArgumentSemantic.Retain)] NSDictionary[] ActiveTasks { get; } I use this property very often. Nevertheless, once every thousand of accesses, I get a SIGSEGV on get_activeTasks (the binding of the selector). I wonder what I am doing wrong and why this only happens very rarely instead of systematically. at (wrapper managed-to

Occasional SIGSEGV in NSArray binding

谁说胖子不能爱 提交于 2019-12-25 02:58:17
问题 I have the following property that I am binding: @property (nonatomic, readwrite, retain) NSArray* activeTasks; That I bind with the following code: [Export("activeTasks", ArgumentSemantic.Retain)] NSDictionary[] ActiveTasks { get; } I use this property very often. Nevertheless, once every thousand of accesses, I get a SIGSEGV on get_activeTasks (the binding of the selector). I wonder what I am doing wrong and why this only happens very rarely instead of systematically. at (wrapper managed-to

How do I make MonoDevelop recognize nameof syntax from C# 6.0?

那年仲夏 提交于 2019-12-25 02:24:28
问题 I'm in MonoDevelop v5.9.6. Although it seems to support C# 6.0, the editor doesn't recognize the nameof keyword, and it marks it red, because it tries to recognize it as if it were an identifier. Is there any hack I can use to make it work in the editor, without breaking the compilation somehow? 回答1: This hack works: // hack to make MonoDevelop recognize nameof syntax from C#6.0 using nameof = System.Func<string>; The editor recognizes it as "returning a string" and doesn't give any errors

Mono for Android not appearing in the MonoDevelop options

為{幸葍}努か 提交于 2019-12-25 02:03:35
问题 I have installed Mono for Android and MonoDevelop as per instructions on the install page for Windows. (http://mono-android.net/Installation/Windows). However the "Mono for Android SDKs" option does not appear in the options dialog. I have reinstalled MonoDevelop 2.6.3 Beta, but no luck. Any one see this issue before? Update: Found it. I had to reload the repositories, they didn't appear initially...however, now I have an exception when I try to access the options: System.Reflection

Print JSON to screen as a block of text in unity

久未见 提交于 2019-12-24 22:42:30
问题 I am using unity3d and I have a JSON object. I am able to access each member using ob.name and so on but I am looking to get this deserialized block to be printed on my screen during run time.Similar to a search result , so I get the JSON as a result of search and I want to display it on my screen.I get errors that I cannot print the object because I used (ob.name)toString(); I am not sure how to display this during run time on the screen. ObjR rs = JsonUtility.FromJson<ObjR>(jsonString); /

using visual studio IDE using Mono for Android

女生的网名这么多〃 提交于 2019-12-24 20:21:06
问题 I've been checking around for working with VS IDE instaed of Mono's, I understood that I have to download vsprj2me, something like that, but couldn't find any activate download for that. Is it true that I have to download it? And if so, can anybody supply me a link for a download? Thank you. 回答1: Default MonoDroid installer performs necessary configurations automatically. You should simply provide a path to the Android SDK: http://docs.xamarin.com/android/getting_started/installation

Monodevelop: embedded resource line-ending CRLF converted to LF?

…衆ロ難τιáo~ 提交于 2019-12-24 19:03:17
问题 I have a resource which isn't exactly textual. It's a file with some texts in it and some ansi control code. In my program I'm processing it as a binary file. However, I found that when I load it with System.Resources.ResourceManager.GetObject() as a byte[], all CRLFs are converted to LFs. This is not exactly what I want. I wonder if it's happening at compile time or runtime. The same project works fine on Xamarin on Windows and OS X. No conversion is happening. It's only happening on Linux.

How to use assembly registered in GAC on MonoDevelop?

為{幸葍}努か 提交于 2019-12-24 17:28:39
问题 I recently registered Mysql.Data.dll assembly in GAC on 64bit Ubuntu 14.4 to use it following this example with an ASP.NET Mono project and verified. I realized that although it is registered in GAC, it's not directly usable from Edit references dialogue on Monodevelop. I tried to see how can this be made possible, the possibilities exists for Visual Studio which is something I don't need. Doubts: If the assembly is un-usable what is the concept of registering it in GAC? How can this assembly

Type or namespace 'Mono' could not be found

蓝咒 提交于 2019-12-24 12:19:02
问题 I am trying to simply compile code from here https://github.com/neoeinstein/purpleonion I have installed mono, monodevelop, .net framework 4 and gtk# When I open the solution and try to compile any of the projects, I get this error, namespace 'Mono' could not be found. How can it not be found? Isn't that the base namespace that must exist in mono? 回答1: The Mono implementation of the BCL assemblies does not expose any additional API. If something's referring to a Mono namespace, it comes from