Repository navigation
Odd WeakReferenceMessenger error #342
CADTraveller
started this conversation in
General
Replies: 2 comments 11 replies
|
That doesn't look right. What NuGet version are you using? What TFM are you using? Are you using .NET 7 preview by any chance? 🤔 |
9 replies
|
I'm also encountered with this problem. using nuget package 8.3.2, but still when using
For more information. If I install RevitPython shell with System.Runtime.CompilerServices.Unsafe.dll version of 4.6.28619.1 and it loads in Revit before my plugin, everything works fine. But if i delete it — got this exception |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I have been using WeakReferenceMessenger service to communicate between ViewModels. I have nested structure, there is a 'Parent' ViewModel which contains 'Child' ViewModels and I want to get notice of state changes in 'Child' VMs.
In the Parent constructor i register as a receiver:
In the nested Child VM I will publish a message:
This works as expected in a test Harness project on my machine.
However, when a colleague runs this we are getting this error when sending the message:
Method not found: 'Boolean System.Runtime.CompilerServices.Unsafe.IsNullRef(!!0 ByRef)
Anyone recognize this? Since I cannot duplicate on my machine I'm struggling to investigate.
All reactions