-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native Code Encountered
when trying to subscribe to an event.
#3046
Labels
Comments
That means something isn't plugged. Could you show us the full output log so we can see which method needs to be plugged? |
This is the part of the output since the error
|
Sorry @gamma63 , EventHandler is not working as bug of IL2CPU. (Bug of MulticastDelegate Plugs) |
Bit late, but this indeed is a bug and is tracked in #2765. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Area of Cosmos - What area of Cosmos are we dealing with?
Events
Expected Behaviour - What do you think that should happen?
Be able to subscribe to a custom event
Actual Behaviour - What unexpectedly happens?
The compilation fails with the following message
Exception: System.Exception: Native code encountered, plug required. Chech build output for more information
I assume this means that Cosmos is missing a plug for Event Handling, but I thought Cosmos had an implementation for that?
Reproduction - How did you get this error to appear?
Create custom event args
Create an event in another class
Try to subscribe to the event from other class
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
Latest DevKit with C#
The text was updated successfully, but these errors were encountered: