"the application has requested the runtime to terminate it in an unusual way"



  • Can't run Qt Quick 2 app in Creator in Windows but runs fine in Mac

    I have a simple Qt Quick QML interface I can run in Creator fine on the Mac. When I open the same project in Windows and try to run it, I get error:

    "the application has requested the runtime to terminate it in an unusual way"

    What's odd is that I have been able to open and run it in Creator on a different Windows system. The only difference is that I installed Qt on that other system using the online installer, whereas on this problem system I used the offline MinGW package. Most other QML apps are running fine but this and a couple of the demos are creating this error message.

    Anyone know what it means?


  • Moderators

    That is a very generic message which means "Your program crashed".

    First, check that you don't have multiple versions of Qt on your computer that got mixed up.

    Second, you'll need to run a debugger to see where the crash happened.



  • Interesting. It is an error that is cropping up with actual Qt demo projects as well as a Qt Quick 2 test I wrote myself. All of these run just fine on Mac as well as on a different Windows system, but all fail with this error on the current Windows system. There is only one Qt installed on this system.

    The difference between the two Windows systems is that one was installed with the online Qt installer, the other with the offline installer.


  • Moderators

    That sounds like a DLL mismatch.

    Make sure your compilation tools aren't getting mixed up either. Do you have other copies of MinGW/MSYS on your machine?

    What Windows versions do you have?



  • I'm using a 32 bit Windows 7. I have not installed MinGW or VS independently of what is included with the Qt install. Perhaps it is a dll mismatch; I had to copy dll files into the executable directory and perhaps I copied the wrong one. Is there a straightforward and efficient manner of getting all the required dll files to automatically populate a build directory, or at least to more efficiently know which dll files should be moved?

    But actually this error is not just from the build directory, it also happens when I run within Qt Creator directly, using the build directory it sets up automatically without any dll files.


  • Moderators

    [quote author="qttester5" date="1377079117"]I'm using a 32 bit Windows 7. I have not installed MinGW or VS independently of what is included with the Qt install. Perhaps it is a dll mismatch; I had to copy dll files into the executable directory and perhaps I copied the wrong one. Is there a straightforward and efficient manner of getting all the required dll files to automatically populate a build directory, or at least to more efficiently know which dll files should be moved?[/quote]All your DLLs should come from the folder that contains qmake.exe

    [quote]But actually this error is not just from the build directory, it also happens when I run within Qt Creator directly, using the build directory it sets up automatically without any dll files.[/quote]Run a debugger -- what does it tell you?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.