Skip to content

Instantly share code, notes, and snippets.

View spouliot's full-sized avatar

Sebastien Pouliot spouliot

View GitHub Profile
Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile method '(wrapper managed-to-native) System.Diagnostics.FileVersionInfo:GetVersionInfo_internal (string)' while running with --aot-only.
at System.Diagnostics.FileVersionInfo.GetVersionInfo (System.String fileName) [0x00000] in <filename unknown>:0
at Keychain.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x000d2] in /Users/sebastienpouliot/git/monotouch-samples/Keychain/Keychain/Main.cs:55
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in <filename unknown>:0
at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in <filename unknown>:0
at Keychain.Application.Main (System.String[] args) [0x00000] in /Users/sebastienpouliot/git/monotouch-samples/Keychain/Keychain/Main.cs:17
[ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException: Attemp
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index 00aaf45..1bdcc5c 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -2735,7 +2735,12 @@ add_wrappers (MonoAotCompile *acfg)
MonoType *t;
MonoClass *klass;
- g_assert (method->flags & METHOD_ATTRIBUTE_STATIC);
+ /* this cannot be enforced by the C# compiler so we must give the user some warning before aborting */
{"btnHelloWorld","@@:",0, &monotouch_trampoline},
{"setBtnHelloWorld:","v@:@",0, &monotouch_trampoline},
{"btnHelloUniverse","@@:",0, &monotouch_trampoline},
{"setBtnHelloUniverse:","v@:@",0, &monotouch_trampoline},
@spouliot
spouliot / gist:1379500
Created November 19, 2011 23:02
patch to add AccessoryTapped in MonoTouch.Dialog
diff --git a/MonoTouch.Dialog/DialogViewController.cs b/MonoTouch.Dialog/DialogViewController.cs
index 19bbf70..f7828d8 100644
--- a/MonoTouch.Dialog/DialogViewController.cs
+++ b/MonoTouch.Dialog/DialogViewController.cs
@@ -300,6 +300,14 @@ namespace MonoTouch.Dialog
Root = container.root;
}
+ public override void AccessoryButtonTapped (UITableView tableView, NSIndexPath indexPath)
+ {
[Test]
// http://stackoverflow.com/questions/8240276/how-to-make-work-uidocumentinteractioncontroller-in-monotouch
public void Delegate ()
{
UIDocumentInteractionController dic = new UIDocumentInteractionController ();
UIDocumentInteractionControllerDelegate del = new UIDocumentInteractionControllerDelegate ();
dic.Delegate = del;
Assert.NotNull (dic.Delegate, "Delegate");
}
$ file "/Users/sebastienpouliot/Downloads//Google Analytics SDK/Library/libGoogleAnalytics_NoThumb.a"
/Users/sebastienpouliot/Downloads//Google Analytics SDK/Library/libGoogleAnalytics_NoThumb.a: Mach-O universal binary with 3 architectures
/Users/sebastienpouliot/Downloads//Google Analytics SDK/Library/libGoogleAnalytics_NoThumb.a (for architecture i386): current ar archive random library
/Users/sebastienpouliot/Downloads//Google Analytics SDK/Library/libGoogleAnalytics_NoThumb.a (for architecture armv6): current ar archive random library
/Users/sebastienpouliot/Downloads//Google Analytics SDK/Library/libGoogleAnalytics_NoThumb.a (for architecture armv7): current ar archive random library
diff --git a/linker/Descriptors/mscorlib.xml b/linker/Descriptors/mscorlib.xml
index b83ad42..343318b 100644
--- a/linker/Descriptors/mscorlib.xml
+++ b/linker/Descriptors/mscorlib.xml
@@ -300,6 +300,11 @@
<method name="SerializeExceptionData" />
</type>
+ <!-- until MonoTouch's PreserveCode is adapted for MMP -->
+ <type fullname="System.Resources.RuntimeResourceSet">
@spouliot
spouliot / gist:1409439
Created November 30, 2011 15:20
System.Drawing API required by NPlot
M: System.Drawing.Color System.Drawing.Color::get_Black()
M: System.Void System.Drawing.SolidBrush::.ctor(System.Drawing.Color)
M: System.Void System.Drawing.Pen::.ctor(System.Drawing.Color)
M: System.Void System.Drawing.FontFamily::.ctor(System.String)
M: System.Void System.Drawing.Font::.ctor(System.Drawing.FontFamily,System.Single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit)
M: System.Single System.Drawing.PointF::get_X()
M: System.Single System.Drawing.PointF::get_Y()
M: System.Void System.Drawing.Point::.ctor(System.Int32,System.Int32)
M: System.Int32 System.Drawing.Point::get_X()
M: System.Void System.Drawing.Point::set_X(System.Int32)
@spouliot
spouliot / gist:1409452
Created November 30, 2011 15:22
System.Drawing API required by ZedGraph
M: System.Void System.Drawing.Point::.ctor(System.Int32,System.Int32)
M: System.Drawing.PointF System.Drawing.Point::op_Implicit(System.Drawing.Point)
M: System.Void System.Drawing.Point::Offset(System.Int32,System.Int32)
M: System.Boolean System.Drawing.RectangleF::Contains(System.Drawing.PointF)
M: System.Void System.Drawing.PointF::.ctor(System.Single,System.Single)
M: System.Drawing.Point System.Drawing.Point::Round(System.Drawing.PointF)
M: System.Single System.Drawing.PointF::get_X()
M: System.Int32 System.Drawing.Point::get_X()
M: System.Single System.Drawing.PointF::get_Y()
M: System.Int32 System.Drawing.Point::get_Y()
@spouliot
spouliot / gist:1409463
Created November 30, 2011 15:26
combined API lists
F: System.Drawing.Color System.Drawing.Color::Empty
F: System.Drawing.PointF System.Drawing.PointF::Empty
F: System.Drawing.Rectangle System.Drawing.Rectangle::Empty
M: System.Boolean System.Drawing.Color::get_IsEmpty()
M: System.Boolean System.Drawing.Color::op_Inequality(System.Drawing.Color,System.Drawing.Color)
M: System.Boolean System.Drawing.Drawing2D.GraphicsPath::IsOutlineVisible(System.Drawing.PointF,System.Drawing.Pen)
M: System.Boolean System.Drawing.Drawing2D.GraphicsPath::IsVisible(System.Drawing.PointF)
M: System.Boolean System.Drawing.Font::get_Bold()
M: System.Boolean System.Drawing.Font::get_Italic()
M: System.Boolean System.Drawing.Font::get_Underline()