Hello,
I have a sigabrt when I try to suscribe an event. This error is only on devices
error: * Assertion at /Users/builder/data/lanes/4466/9995504e/source/xamarin-macios/external/mono/mono/mini/mini-generic-sharing.c:642, condition `inflated_method->klass == inflated_class' not met
Does anyone know how to solve this problem?
Answers
@jordan.connectivit
Can you show the code that you are using? What type of event on what type of object are you subscribing to?
@JGoldberger
I try to subscribe on one of my custom event on one of my custom object.
Here my code :
Here event class of ASearch object
This code works on iOS Emulator and on Android.
Let me know if you need more informations
Thanks
EDITED: for better code formatting
@jordan.connectivit
You gave the code for the event arguments not the ASearch object as indicated.
@JGoldberger your @ tag got the wrong Jordan
Oh, sorry, darn periods.
@jordan.connectivit
See above.
@JGoldberger
Here the code of ASearch
@jordan.connectivit
Hmm, that all looks good so I am not sure why you are getting that exception on iOS Device only. What are your linker settings for the iOS Device build? Look in your project options/properties in the iOS Build section for the "Linker behavior" field. What is that field's setting now? If not "Don't link" (or "None" if using Visual Studio) try that option and see what happens. If it works with "Don't Link" option then this is a bug we will need to get filed, and if so it would be great if you could provide a stripped down test project with the minimal code necessary to replicate the issue so we can reproduce the issue and track it down. Thanks!