-
Notifications
You must be signed in to change notification settings - Fork 508
Attempt at WinForms project part 2 #8071
Comments
Yes, this is COM. The only workaround that comes to mind is not using the images on the toolstrip, or finding a different way to load the bitmaps. They're currently loaded from a resource stream. |
Removing the images actually showed the main window (TADA!). However, a second later the app crashed with UIAutomation related exception:
So ... |
Yeah, accessibility is full of COM. If you're building just something for your personal use, you can probably get rid of the accessibility stuff. Of course, don't ship like that (or have fallback on CoreCLR ready for users with special needs). I usually look at stack traces like this and try to find an extensibility point somewhere that lets me get rid of the problem. Making your own |
I just wanted to check if there are issues which could be fixed to make WinForms projects (as produced by Visual Studio designer) usable with CoreRT. While the COM issue is unfortunate, at least we now know that if one wants to use WinForms, they need to have a particular rd.xml, so my research was not completely in vain. I really appreciate your help and support - I learned much along the way, so I am happy. Closing this issue now. |
Hi guys,
After the fixes in #7995 (comment) and #7995 (comment) I continued my attempts to run a minimum viable WinForms app. I had to create a minimal rd.xml file:
which brought me to the next issue. There's an exception thrown from this code from WinForms:
See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Drawing.Common/src/System/Drawing/Image.Windows.cs#L35
and
See https://github.com/dotnet/runtime/blob/master/src/libraries/Common/src/Interop/Windows/Ole32/Interop.IStream.cs#L19
Considering this code talks about interface and Ole32, I assume I hit the missing COM support from #4219 . At any rate, I am opening this issue in case you can think of some smart way to continue forward.
This is my minimal repro project.
The text was updated successfully, but these errors were encountered: