mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #207] Doesn't work properly with .NET Framework/Mono #131
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FieryRider on GitHub (May 31, 2020).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/207
This is not the same issue as #76 though it's probably related.
packages.config. When ran from those type of projects it results in exception:If converted to PackageReference there is no longer exception.
QWindowsContext: OleInitialize() failed: "COM error 0xffffffff80010106 RPC_E_CHANGED_MODE (Unknown error 0x080010106)), the app loads, the custom (C#) components load until you try to access something in a custom (C#) component. Then it results in the following exception:This is my code (if you remove
mainController.print()it works fine):Program.cs
MainController.cs
Main.qml
@pauldotknopf commented on GitHub (May 31, 2020):
It works for me on Linux (not helpful, I know).
Let me try on Windows in a bit.
@FieryRider commented on GitHub (May 31, 2020):
On Linux it runs under
.Net Coredoesn't it? I don't have problems with.Net Coreon Linux nor on Windows. But.Net Frameworkis problematic.@pauldotknopf commented on GitHub (May 31, 2020):
What does your csproj look like? Share a repro repo?
@FieryRider commented on GitHub (May 31, 2020):
https://github.com/FieryRider/TestRepo1
@pauldotknopf commented on GitHub (May 31, 2020):
Ok, it looks like it's loading the native libs correctly.
I'd like to see the actual exception. Is it a .NET exception? Or a native segfault? My Windows machine with me right now, it would help a lot of you could compile QmlNet yourself (at 0.10.1), so that I can get a full stacktrace.
@FieryRider commented on GitHub (May 31, 2020):
Will you compile it from the code of the repo I gave or should I compile QmlNet and give you the info?
It's .Net exception
@pauldotknopf commented on GitHub (May 31, 2020):
Erggh, it looks like it's the dynamic IL that's being generated doesn't plan nice with .NET Framework.
@pauldotknopf commented on GitHub (May 31, 2020):
@pauldotknopf commented on GitHub (May 31, 2020):
I'm pushing an alpha nuget package soon, I'll ping you when it is up.
@pauldotknopf commented on GitHub (May 31, 2020):
Pushed.