ddobrev / QtSharp

Mono/.NET bindings for Qt
Other
571 stars 52 forks source link

System.AccessViolationException in QBoxLayout destructor #80

Open TripleWhy opened 5 years ago

TripleWhy commented 5 years ago

Consider the following code:

var vbox = new QVBoxLayout();
var hbox = new QHBoxLayout();
vbox.AddLayout(hbox);
vbox.Dispose(); // System.AccessViolationException

Tested with the official QtSharp-0.7.4 release with Qt-5.9.2-MinGW. The equivalent code in C++ runs just fine.

ddobrev commented 5 years ago

@TripleWhy thank you for your sample. I'll try it and see if I get the crash myself.