-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor DesignerHost
to replace ArrayList
with List<T>
#8672
Conversation
src/System.Windows.Forms.Design/src/System/ComponentModel/Design/DesignerHost.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms.Design/src/System/ComponentModel/Design/DesignerHost.cs
Outdated
Show resolved
Hide resolved
I made some more changes designed to avoid problems when an array is passed in and not a list/arraylist. Also fixed a caller to the method which was passing in an arraylist. |
@dreddy-work is the test failure a flaky test? |
Error message Stack trace
at System.Windows.Forms.Tests.ListViewLabelEditAccessibleObjectTests.ListViewLabelEditAccessibleObject_IsPatternSupported_ReturnsExpected() in /_/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ListViewLabelEditAccessibleObjectTests.cs:line 67
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) |
Only on ARM suggests so. @dmitrii-drobotov can you check why accessible object is disposed in this case? |
The exception actually looks like that Lines 66 to 67 in b0c7518
There is a condition when it may not be created, I assume winforms/src/System.Windows.Forms/src/System/Windows/Forms/ListView.cs Lines 6484 to 6517 in b0c7518
Should we create a new issue for it through Runfo? https://runfo.azurewebsites.net/search/tests/?q=started%3A%7E100+definition%3A76+name%3A%22system.windows.forms.tests.listviewlabeleditaccessibleobjecttests.listviewlabeleditaccessibleobject_ispatternsupported_returnsexpected%22 |
Related: #8143, #8357
Microsoft Reviewers: Open in CodeFlow