ddobrev / QtSharp

Mono/.NET bindings for Qt
Other
574 stars 51 forks source link

System.AccessViolationException in QBoxLayout destructor #80

Open TripleWhy opened 6 years ago

TripleWhy commented 6 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 6 years ago

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