An unspecified error occurred on the render thread.

Nov 2, 2009 at 2:34 PM
Edited Nov 2, 2009 at 2:35 PM

To get the message "An unspecified error occurred on the render thread." do the following.

1) Start AvalonTest.

2) Add 5 documents by clicking the link "Add documents"

3) By using the mouse cursor select Document3

4) Press Ctrl+Tab to switch to Document2

5) Again, press Ctrl+Tab to switch to Document2

The error occurred. If I comment out the code below in the NavigatorWindow.cs then the error disappears.

 

protected override void OnClosed(EventArgs e)

{

//reset documents list to avoid WPF Bug:

//http://social.msdn.microsoft.com/forums/en/wpf/thread/f3fc5b7e-e035-4821-908c-b6c07e5c7042/

//http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=321955

Documents = new List<NavigatorWindowDocumentItem>(); base.OnClosed(e);

}

The code above apparently resolves the error but I think it actually produces the error.

This error does not occur when using Shift+Tab!

Cheers