Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Threading.Tasks;
using System.Net.Http;
namespace mtsimple
{
public partial class mt_simpleViewController : UIViewController
using System;
class X
{
static void Foo (int arg)
{
#if !DEBUG
if (arg > 0) {
#else
if (arg < 0) {
mcs /noconfig /debug:full /debug+ /optimize- /out:obj/x86/Debug/test-c0.exe Program.cs Properties/AssemblyInfo.cs /target:exe /define:DEBUG /nostdlib /platform:x86 /reference:/Users/marek/mono/lib/mono/4.5/System.dll /reference:/Users/marek/mono/lib/mono/4.5/System.Net.Http.dll /reference:/Users/marek/mono/lib/mono/4.5/System.Core.dll /reference:/Users/marek/mono/lib/mono/4.5/mscorlib.dll /warn:4
Building Solution: test-c0 (Debug|x86)
Building: test-c0 (Debug|x86)
Build started 21/02/2014 22:31:56.
__________________________________________________
Project "/Users/marek/Projects/test-c0/test-c0/test-c0.csproj" (Build target(s)):
Target PrepareForBuild:
* Assertion: should not be reached at mono-threads-posix.c:154
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Threading.Thread.Thread_internal (System.Threading.Thread,System.MulticastDelegate) <IL 0x0002e, 0xffffffff>
at System.Threading.Thread.Start () [0x0003d] in /Users/marek/git/mono/mcs/class/corlib/System.Threading/Thread.cs:704
at System.Threading.Thread.Start (object) [0x00009] in /Users/marek/git/mono/mcs/class/corlib/System.Threading/Thread.cs:938
at System.Threading.Tasks.TpScheduler.QueueTask (System.Threading.Tasks.Task) [0x0003b] in /Users/marek/git/mono/mcs/class/corlib/System.Threading.Tasks/TpScheduler.cs:49
at System.Threading.Tasks.Task.Schedule (bool) [0x00010] in /Users/marek/git/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:391
1>------ Rebuild All started: Project: GoogleApis.Core, Configuration: Debug Any CPU ------
1>Z:\Downloads\33\Src\GoogleApis.Core\Apis\Http\BackOffHandler.cs(122,41,122,60): error CS1983: The return type of an async method must be void, Task or Task<T>
1>Z:\Downloads\33\Src\GoogleApis.Core\Apis\Http\BackOffHandler.cs(122,30,122,40): error CS0433: The type 'System.Threading.Tasks.Task<TResult>' exists in both 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'
1>Z:\Downloads\33\Src\GoogleApis.Core\Apis\Http\BackOffHandler.cs(137,41,137,61): error CS1983: The return type of an async method must be void, Task or Task<T>
1>Z:\Downloads\33\Src\GoogleApis.Core\Apis\Http\BackOffHandler.cs(137,30,137,40): error CS0433: The type 'System.Threading.Tasks.Task<TResult>' exists in both 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'm
Making all in samples
make[2]: Nothing to be done for `all'.
Making all in msvc
make[2]: Nothing to be done for `all'.
Making all in docs
cd . && /Applications/Xcode.app/Contents/Developer/usr/bin/make PROFILE=net_2_0 -f docs.make topdir=../mcs AgilityPack.dll
*** Assuming PLATFORM is 'linux'.
make[3]: `AgilityPack.dll' is up to date.
cd . && /Applications/Xcode.app/Contents/Developer/usr/bin/make PROFILE=net_2_0 -f docs.make topdir=../mcs convert.exe
*** Assuming PLATFORM is 'linux'.
Mono: no implementation for interface method Microsoft.Build.Tasks.Hosting.ICscHostObject::SetLinkResources(ITaskItem[]) in class Microsoft.CodeAnalysis.CSharp.CSharpProjectFileLoader/CSharpProjectFile/CSharpCompilerInputs
Mono: METHOD .cctor()
Mono: METHOD get_Initialized()
Mono: METHOD set_Initialized(bool)
Mono: METHOD get_ParseOptions()
using System;
using System.Runtime.CompilerServices;
[assembly: TypeForwardedTo (typeof (C))]
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at MonoTouch.ObjCRuntime.Runtime.NativeObjectHasDied (IntPtr ptr, IntPtr managed_ptr) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:332
at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:NativeObjectHasDied (intptr,intptr)
at (wrapper managed-to-native) MonoTouch.Foundation.NSObject:monotouch_release_managed_ref (intptr,intptr)
at MonoTouch.Foundation.NSObject.ReleaseManagedRef () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:94
at MonoTouch.Foundation.NSObject.Dispose (Boolean disposing) [0x0002e] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:626
at MonoTouch.Foundation.NSAutoreleasePool.Dispose (Boolean disposing) [0x00000] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSAutoreleasePool.cs:54
at MonoTouch.Foundation.NSObject.Dispose () [0x00000] in /Developer/MonoTouch/Source/maccore/s