It seems unselecting all folders in the ImageSource Editor leads to VS2015 crash.
VS needs to be restarted.
The crash can cause a loss to all unsaved changes in the form.
Please see screenshot attached.
I found the reason. I am running .NET Framework 4.7.2, and the crash is observable in 4.7.1 also.
Looking at the .NET Reference Code, most probably MS has introduced an optimization in recent versions, which does not check for null values.
The function ListView.Items.AddRange(ListViewItem values) crashes if the parameter array contains null members.
You can reproduce the crash by selecting the assembly from the “Select a folder” list for a second time.
For example in my list there is the assembly System.Web.DynamicData.
During the first selection you parse the resources of the library and allocate five null slots in the cache, but you add no images because the library has no images.
During the second second selection of the same assembly you are taking the list from the cache, which contains five slots, and all of them are null.
So by selecting an assembly for the second time will result in NullReferenceException in the .NET Framework.
Sorry my original description was not entirely correct (i.e. de-select all).
Hopefully this helps.
we tried to reproduce this issue but failed so far. Can you please tell us how you deselect all nodes ?
What OS are you running ?
Any chance to describe the exact steps to reproduce it ?
Thanks in advance !
Please login first to submit.