Hello!
We have a largish-scale MVVM application with one shell window which hosts multiple views. In each of these views we use the WPF Localization Extension to provide the strings. Otherwise everything is working fine, but sometimes if we navigate intensively between views, the application will crash with the standard "Application has stopped working."
From the Windows Event Log, we can see the following stack trace:
```
Application: TheApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)
at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNextRare()
at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at XAMLMarkupExtensions.Base.NestedMarkupExtension+EndpointReachedEvent.RemoveListener(XAMLMarkupExtensions.Base.NestedMarkupExtension)
at WPFLocalizeExtension.Extensions.LocExtension.Finalize()
```
We are uncertain if this is a known issue with the extension. The version we use is v2.1.3 from NuGet, with XAML Markup Extension version 1.1.6.1, also from NuGet.
If required, we should be able to compile a debug version of the extension and try to provide a more accurate location for the crash, if the above trace is not sufficient. We cannot provide any source code or any usage samples since it is a proprietary application, but we will do anything else we can to help resolving this.
We have a largish-scale MVVM application with one shell window which hosts multiple views. In each of these views we use the WPF Localization Extension to provide the strings. Otherwise everything is working fine, but sometimes if we navigate intensively between views, the application will crash with the standard "Application has stopped working."
From the Windows Event Log, we can see the following stack trace:
```
Application: TheApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)
at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNextRare()
at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at XAMLMarkupExtensions.Base.NestedMarkupExtension+EndpointReachedEvent.RemoveListener(XAMLMarkupExtensions.Base.NestedMarkupExtension)
at WPFLocalizeExtension.Extensions.LocExtension.Finalize()
```
We are uncertain if this is a known issue with the extension. The version we use is v2.1.3 from NuGet, with XAML Markup Extension version 1.1.6.1, also from NuGet.
If required, we should be able to compile a debug version of the extension and try to provide a more accurate location for the crash, if the above trace is not sufficient. We cannot provide any source code or any usage samples since it is a proprietary application, but we will do anything else we can to help resolving this.