This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
We have recently upgraded to version 7.0.454.23404 of the elements package - largely because we wanted to migrate to .NET 4 However, now we have an incredible amount of instability. Basically, when we are showing an object in a property grid that supports multiple selection we get VerificationExceptions when the OnPropertyChanged event is triggered. The source of the exception is coming from Mindscape.Elements. In our case, the OnPropertyChanged raises a weak event - see below. In the debugger, I can see the ee.TargetReference is "Mindscape.WpfElements.PropertyEditing.Many
Some research has come up with a few things, but I'm not sure if any of them apply. See this for example. Any ideas? |
|
|
Hi Eliz, I have not been able to reproduce this issue. Could you please send a simple repro project demonstrating a weak property changed event and causing the exception, then I'll look into this further for you and see if we can make a fix. -Jason Fauchelle |
|
|
Perhaps this will help. I will still try to put together a test project if I can. In the following link they are describing the issue fairly well. The main explanation appears to be this:
And this is definitely WeakEvent related, most probably because it deals with generics. Because if I change to a regular delegate than I don't have the issue. I am looking at changing my ViewModelBase class to a more .NET 4.5 way of doing things. If I switch back to a delegate, I can use WeakEventManager to subscribe to the event as a WeakEvent. I'll see if that helps. I'm not sure exactly which 'clients' especially need this to be a WeakEvent, so I am experimenting a bit here. |
|
|
Hi Eliz, Just catching up on this, were you able to get this sorted in your application? If not, I'd be happy to still look into it with a repro project. Regards -Jason Fauchelle |
|