C#, C++ developer with experience in Qt for Qml.Net Bugfix

Job ID: 31139683

Budget: $30 – $250 USD

We're using a C# wrapper for the Qt Qml UI (Qml.Net) and currently facing some bugs most probably related to memory management in C#/C++ Qt meaning AccessViolationExceptions, crashes, and signals not reaching the Ui (Binding getting lost) in QML.
We have a clean setup for reproducing the bug. Your task would be to identify what's exactly the problem and fix the problem inside Qml.Net.

The Setup:
- We have a main qml file and a viewmodel (here: Red) set as context property
- We are using a Loader to Load child views using seperate viewmodel (here: Green)
- Each viewmodel updates properties (also maybe from another thread, I don't know if this is important, but the NotifySignal will always by fired by the UI Thread) here using a timer.

How to Reproduce:
- Run the Project, then Red View and ViewModel is shown
- Click "Hide/Show Green", then Green View and ViewModel is show and properties of Green are updating just fine
- Click "Hide/Show Green" again, then Green View disappears (source and green property of loader are set to ""/null)
- Click "Hide/Show Green" again, then Green VIew and same instance of ViewModel is shown but properties of green don't update anymore

Further Steps:
- Click on Update Binding from QML, then triggers an update of the binding by incrementing a int thats part of the binding. The binding will update, meaning it isn't destroyed
Related categories: Windows Desktop C# Programming C++ Programming Qt