xamarin-macios/tools/common
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
..
Application.cs [runtime] add support for mono runtime interpreter (#3058) 2018-05-04 23:59:31 +02:00
Assembly.cs [Compression] Ensure we use the correct linking flags for older versions. Fixes #4129. (#4169) 2018-06-05 09:12:27 -07:00
BuildTasks.cs [mtouch] Add support for creating a dot file of the build tree. 2017-02-10 14:46:30 +01:00
CompilerFlags.cs Merge latest d15-3 fixes into xcode9 (#2660) 2017-09-12 13:08:55 -04:00
CoreResolver.cs Bump mono to head of 2018-02 + fix mtouch/mmp (#4171) 2018-06-04 19:44:40 -04:00
DerivedLinkContext.cs [linker] The static registrar may need information about types that have been linked away, so make sure we can get that information by storing it somewhere. 2018-02-14 01:26:58 +01:00
Driver.cs [mtouch][mmp] Add better easier, more complete timestamps to see where time is spent (#4150) 2018-05-29 13:08:34 -04:00
Frameworks.cs [tests] Add introspection tests to ensure there are native linking instructions for all frameworks. Fixes #3976 (#4194) 2018-06-08 10:00:48 -07:00
MachO.cs [mmp] Add stripping of 32-bit dylibs to work with new App Store restrictions (#3387) 2018-03-01 09:36:06 -06:00
Make.common Move MT0091 to common code so Xamarin.Mac can benefit from the more f… (#2780) 2017-09-29 12:45:53 -05:00
Optimizations.cs [static registrar] Optimize creation of delegates for blocks. (#3623) 2018-03-02 14:30:18 +01:00
PInvokeWrapperGenerator.cs [mtouch/mmp] Fix tracking of whether the static registrar should run again or not. Fixes #641. (#3534) 2018-02-19 20:28:04 +01:00
SdkVersions.cs.in Move MT0091 to common code so Xamarin.Mac can benefit from the more f… (#2780) 2017-09-29 12:45:53 -05:00
StaticRegistrar.cs [registrar] Improve error message when failing to create a managed wrapper for a native handle. (#4360) 2018-06-29 14:38:28 +02:00
StringUtils.cs [generator] Register models with unique names to not match platform types. Fixes #3875. (#3879) 2018-04-06 17:24:07 +02:00
Symbols.cs [mmp] Fix symbol name for 32-bit Objective-C classes. Fixes #58861. (#2506) 2017-08-24 09:42:08 +02:00
Target.cs [mtouch] Find the link context for code shared app extensions in the static registrar. Fixes #3514. (#3545) 2018-02-21 09:27:26 +01:00
TargetFramework.cs [generator] Don't define 'GENERATOR', since IKVM sources use the same name (for something else). (#1811) 2017-03-02 07:13:10 +01:00
cache.cs [mtouch] Take into account the contents of response files when determining whether the cache is valid or not. Fixes #4033. (#4032) 2018-05-04 11:29:50 +02:00