-
Notifications
You must be signed in to change notification settings - Fork 5
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
A callback was made on a garbage collected delegate #5
Comments
Can you provide a piece of code to reproduce this issue? |
If you modify the test
Note: The test will not fail, it will never finish execution. You have to look in the output window to see the error message. |
I tried to reproduce with the test |
If the local variable
|
After running my simulation loop for a short while (setting inputs - AdvanceTime - reading outputs)the program crashes with this error:
Turns out that this happens when the garbage collector kicks in. If I call GC.Collect in my simulation loop I get the error immediately.
If I debug the program in Visual Studio it catches a
ExecutionEngineException
with no call stack.The text was updated successfully, but these errors were encountered: