Loading Qt5Core.dll leads to access violation in x64-msvcrt-ruby220.dll

Hi!

I have written a C+±plugin for SketchUp using SWIG. The SketchUp-plugin is used as renderer for some data provided by another dll that contains my application’s core implementation. Everything works fine so far.
Now I try to come up with a (Windows) Dialog independently from the SketchUp-UI to control my application core while I visualize my stuff in SketchUp. I’ve chosen Qt as UI-Framework.
So I added the dependencies to Qt to the plugin-dll but as soon as I start SketchUp with my plugin and the Qt5Core.dll is loaded I get the following exception:

Exception thrown at 0x000000006499EA70 (x64-msvcrt-ruby220.dll) in SketchUp.exe: 0xC0000005: Access violation reading location 0x0000000000000008.

All I added in my plugin was a single QString instantiation to provoke the dll-loading.

I’m developing on VS 2015 and I use Qt 5.7 and SketchUp 2017 with Ruby 2.2.

Is there a general incompatibility between Ruby and Qt or am I simply missing something? I am very thankful for any hint…

Only wanted to say I’m getting the same issue when trying to run debug (on the C++ tutorial HelloWorld example) with VS 2017 on SU 2017.

We get a simular exception in our Skalp C extension on a few computers (but we can’t reproduce the problem on our own computers).

Unhandled exception at 0x0000000064803704 (x64-msvcrt-ruby220.dll) in SketchUp21Q126T5.dmp: 0xC0000005: Access violation reading location 0x0000000000000008.