-
Notifications
You must be signed in to change notification settings - Fork 743
Crash on Event invocation with ref parameter #1355
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
Comments
Do you need |
Also see this comment: #1364 (comment) re: modification. |
I don't need to modify the data. I think the reason they designed it this way is because the data is a long string so they're trying to avoid copy. |
Not related to the issue, but in .NET strings are pointers, so passing them does not make a copy of the characters, but only of the pointer... |
Fixed by #1364 |
Thank you so much for the quick turnaround time on this @tminka.
|
|
Environment
Details
ref
parameter, the python process crashes. I provided the code to reproduce the issue below.Note: I cannot change the code to not use
ref
as theref
delegate is coming from a 3rd party library. I can wrap around it with a lightweight C# piece of code but would rather avoid it if possible.Note: This may be related to the following issue: #965
Windows Event Viewer Error 1: Source - .NET Runtime
Windows Event Viewer Error 2: Source - Application Error
The C# class with
ref
parameter for the delegate. Removing theref
resolves the problemPython program to invoke the event. Crashes.
The text was updated successfully, but these errors were encountered: