Bug 18443 - Static registrar fails to find method with generic delegate when called from Objective-C
Summary: Static registrar fails to find method with generic delegate when called from ...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-18 10:30 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2014-03-18 10:35 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Rolf Bjarne Kvinge [MSFT] 2014-03-18 10:30:29 UTC
This typically happens when iOS calls the PerformFetch method in AppDelegate.

Test case: http://forums.xamarin.com/discussion/comment/47081/#Comment_47081

Result:
Unhandled managed exception: Could not find the method 'PerformFetch' in the type 'BackgroundFetchApp.AppDelegate'. (MonoTouch.MonoTouchException)
at MonoTouch.ObjCRuntime.Runtime.FindMethod (IntPtr typeptr, IntPtr methodptr, Int32 paramCount, System.IntPtr* paramptr) [0x0013c] in /work/monotouch/master/monotouch/src/ObjCRuntime/Runtime.cs:320
at MonoTouch.ObjCRuntime.Runtime.GetMethodDirect (IntPtr typeptr, IntPtr methodptr, Int32 paramCount, System.IntPtr* paramptr) [0x00000] in /work/monotouch/master/monotouch/src/ObjCRuntime/Runtime.cs:276
at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:GetMethodDirect (intptr,intptr,int,intptr*)
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /work/monotouch/master/monotouch/src/UIKit/UIApplication.cs:38
Comment 1 Rolf Bjarne Kvinge [MSFT] 2014-03-18 10:35:47 UTC
Fixed.

monotouch/master: c42fd18421f0c2009a2a2991bcaed6f21ecb244a

QA: unit tests were added as well.