mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #178] App using native hosting crashes immediately #113
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#113
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 @BrianAllred on GitHub (Dec 12, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/178
I've set up native hosting like the documentation specifies (only difference is I moved TestObject to its own file within the namespace). When I run, I get the error below.
Line 16 is the
return Host.Run(...line.@pauldotknopf commented on GitHub (Dec 12, 2019):
I suspect you are using the native from git, while using the .NET lib from NuGet. The native/net libs must be aligned.
I recommend adding "QmlNet" as a submodule. Compile in the native bits (including the .pri file), and refernce the Qml.Net.csproj project directly from the submodule (instead of from Nuget).
@BrianAllred commented on GitHub (Dec 12, 2019):
Your suspicion was correct, thanks!