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.
Comments: Hello, I took a copy of the latest source code, but after compiling and copying the assembly into our output directory, the application does not even start. Apparently the "SetCurrentThreadCulture" property has been removed. Commenting out this line, I do get a little bit forward, but then another crash occurs, complaining that a method or operation is not implemented. Apparently the source code available from the top toolbar is not in sync with the NuGet package, or there's a version conflict. Also, I could not obtain the XAML Markup Extensions' package's source code at all, the repository of the project here on CodePlex only contains the BuildProcessTemplates, and no actual source. How should we proceed if we want to provide you with a more detailed debug log? Also, are we using an outdated version of the extension since from what I can see, the current source code does not even contain the LocExtension class referred to in the stack trace?
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.
Comments: Hello, I took a copy of the latest source code, but after compiling and copying the assembly into our output directory, the application does not even start. Apparently the "SetCurrentThreadCulture" property has been removed. Commenting out this line, I do get a little bit forward, but then another crash occurs, complaining that a method or operation is not implemented. Apparently the source code available from the top toolbar is not in sync with the NuGet package, or there's a version conflict. Also, I could not obtain the XAML Markup Extensions' package's source code at all, the repository of the project here on CodePlex only contains the BuildProcessTemplates, and no actual source. How should we proceed if we want to provide you with a more detailed debug log? Also, are we using an outdated version of the extension since from what I can see, the current source code does not even contain the LocExtension class referred to in the stack trace?