xamarin-macios/tools
Rolf Bjarne Kvinge e110612118
[registrar] Improve error message when failing to create a managed wrapper for a native handle. (#4360)
* Convert it into a MM8027/MT8027 error (with documentation).
* Add information about the selector and managed method that triggered the error.

Now the problem reported in issue #4254 shows up as:

> ObjCRuntime.RuntimeException: Failed to marshal the Objective-C object 0x7f8080412810 (type: UIView). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'UIKit.UIView&' does not have a constructor that takes one IntPtr argument).
> Additional information:
> 	Selector: popoverController:willRepositionPopoverToRect:inView:
> 	Method: UIKit.UIPopoverController+_UIPopoverControllerDelegate.WillReposition(UIKit.UIPopoverController, CoreGraphics.CGRect ByRef, UIKit.UIView ByRef)

instead of just:

> ObjCRuntime.RuntimeException: Failed to marshal the Objective-C object 0x7f8080412810 (type: UIView). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'UIKit.UIView&' does not have a constructor that takes one IntPtr argument).

which makes it much easier to understand, track down, and fix/work around,
both for customers and ourselves.
2018-06-29 14:38:28 +02:00
..
apidiff Bump to mono/2018-04 (#3856) 2018-06-27 10:59:59 -04:00
common [registrar] Improve error message when failing to create a managed wrapper for a native handle. (#4360) 2018-06-29 14:38:28 +02:00
install-source [Debugger] Copy the NSUrlSessionHandler src. Fixes #3724 (#4193) 2018-06-09 18:23:59 -07:00
linker [Linker] Remove bundled mscorlib.xml descriptor from mmp and mtouch (#3772) 2018-05-30 17:14:49 -05:00
mlaunch Put a binary copy of mlaunch in macios-binaries instead of in Azure. Fixes #3316. (#3877) 2018-04-10 09:53:11 +02:00
mmp Bump to mono/2018-04 (#3856) 2018-06-27 10:59:59 -04:00
mtouch Bump to mono/2018-04 (#3856) 2018-06-27 10:59:59 -04:00
.gitignore Add scripts to calculate API diffs and generated code diff between the current build and another revision. (#3447) 2018-02-13 07:47:47 +01:00
Makefile Put a binary copy of mlaunch in macios-binaries instead of in Azure. Fixes #3316. (#3877) 2018-04-10 09:53:11 +02:00
compare-commits.sh [compare-commits] Fix APFS check to check for functionality, not OS version. (#4057) 2018-05-09 14:36:25 +02:00
diff-to-html Add scripts to calculate API diffs and generated code diff between the current build and another revision. (#3447) 2018-02-13 07:47:47 +01:00