Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. __cxa_throw _bad array_ new_length not found in the dynamic link library C:\Users\Asma\Documents\Ckconvert\release\Qt5Core.dll
Forum Updated to NodeBB v4.3 + New Features

__cxa_throw _bad array_ new_length not found in the dynamic link library C:\Users\Asma\Documents\Ckconvert\release\Qt5Core.dll

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J.HilkJ J.Hilk

    @Zunneh hi
    do not copy and past stuff by hand, use the Windows deployment tool
    https://doc.qt.io/qt-5/windows-deployment.html

    each compiled (Qt)lib has one, so make sure to use the one from the 5.6.0 director (the build version)

    Z Offline
    Z Offline
    Zunneh
    wrote on last edited by
    #3

    @J-Hilk
    Hi,
    thanks for your answer, i tried windeployqt and this is the result when i try to run

    779b6dad-6579-4476-afb4-85b88acaae5c-image.png

    it seems like windeploy Qt forget to add libwinpthread-1.dll, i added this file manually ( copy and paste ) and i still get the same problem

    159c7a7a-837e-4316-a455-a8864d998113-image.png

    Same problem...

    my english is average, please use simple words and try to be the most explicit, thank you

    J.HilkJ 1 Reply Last reply
    0
    • Z Zunneh

      @J-Hilk
      Hi,
      thanks for your answer, i tried windeployqt and this is the result when i try to run

      779b6dad-6579-4476-afb4-85b88acaae5c-image.png

      it seems like windeploy Qt forget to add libwinpthread-1.dll, i added this file manually ( copy and paste ) and i still get the same problem

      159c7a7a-837e-4316-a455-a8864d998113-image.png

      Same problem...

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #4

      @Zunneh did you remove the previously copied dlls beforehand ?

      And did you use the correct windeployqt ? (I have to ask 🙈)

      From the console command, I can see it matches with the version you said, was used for the program


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      Z 1 Reply Last reply
      0
      • J.HilkJ J.Hilk

        @Zunneh did you remove the previously copied dlls beforehand ?

        And did you use the correct windeployqt ? (I have to ask 🙈)

        From the console command, I can see it matches with the version you said, was used for the program

        Z Offline
        Z Offline
        Zunneh
        wrote on last edited by
        #5

        @J-Hilk yeah of course i removed the all dll before doing windeployQt ( i deleted all the content of release file then build it again )

        about the good version :

        c8c5a484-27d2-495f-a8eb-f3f96558905f-image.png

        my english is average, please use simple words and try to be the most explicit, thank you

        J.HilkJ 1 Reply Last reply
        0
        • Z Zunneh

          @J-Hilk yeah of course i removed the all dll before doing windeployQt ( i deleted all the content of release file then build it again )

          about the good version :

          c8c5a484-27d2-495f-a8eb-f3f96558905f-image.png

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #6

          @Zunneh 🤔
          do you have Qt Libs in your system path variable ?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          Z 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @Zunneh 🤔
            do you have Qt Libs in your system path variable ?

            Z Offline
            Z Offline
            Zunneh
            wrote on last edited by
            #7

            @J-Hilk

            ea7bc7f0-f004-4ef6-b1e8-a3fdc255e0cb-image.png

            my english is average, please use simple words and try to be the most explicit, thank you

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #8

              Hi, it's a bit odd that your libwinpthread-1.dll is not from the same year as the other 2 MinGW dlls (libgcc_s_dw2-1.dll and libstdc++-6.dll).
              I've deployed lots of Qt MinGW installations, and every time I've seen that those 3 dlls: libwinpthread-1.dll, libgcc_s_dw2-1.dll and libstdc++-6.dll are from the same year, month and day (even the hour and minutes are the same).
              Maybe you can find a libwinpthread-1.dll that has the date summer of 2018 and not from december 2014.

              Z 1 Reply Last reply
              1
              • hskoglundH hskoglund

                Hi, it's a bit odd that your libwinpthread-1.dll is not from the same year as the other 2 MinGW dlls (libgcc_s_dw2-1.dll and libstdc++-6.dll).
                I've deployed lots of Qt MinGW installations, and every time I've seen that those 3 dlls: libwinpthread-1.dll, libgcc_s_dw2-1.dll and libstdc++-6.dll are from the same year, month and day (even the hour and minutes are the same).
                Maybe you can find a libwinpthread-1.dll that has the date summer of 2018 and not from december 2014.

                Z Offline
                Z Offline
                Zunneh
                wrote on last edited by
                #9

                @hskoglund how can i find it ? its not easy...

                my english is average, please use simple words and try to be the most explicit, thank you

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #10

                  Hi, libgcc_s_dw2-1.dll and libstdc++-6.dll are already on your computer, so try looking for all instances of libwinpthread-1.dll on your computer, open a CMD window and type:

                  dir C:\libwinpthread-1.dll /a/s
                  
                  Z 1 Reply Last reply
                  0
                  • hskoglundH hskoglund

                    Hi, libgcc_s_dw2-1.dll and libstdc++-6.dll are already on your computer, so try looking for all instances of libwinpthread-1.dll on your computer, open a CMD window and type:

                    dir C:\libwinpthread-1.dll /a/s
                    
                    Z Offline
                    Z Offline
                    Zunneh
                    wrote on last edited by
                    #11

                    @hskoglund No one was found with the same Date, i will try to Deploy with another version.
                    I have a question, if i deploy without the possibility to open my .exe in release, it will work ?

                    my english is average, please use simple words and try to be the most explicit, thank you

                    1 Reply Last reply
                    0
                    • hskoglundH Offline
                      hskoglundH Offline
                      hskoglund
                      wrote on last edited by
                      #12

                      No, if double-clicking on the .exe does not start your application ok, then deploying would be just a waste of time.

                      One other possibility to get a good copy of libwinpthread-1.dll, you could try installing a newer version of Qt for the MinGW compiler, like the current one, it's 5.14.1.

                      Z 1 Reply Last reply
                      1
                      • hskoglundH hskoglund

                        No, if double-clicking on the .exe does not start your application ok, then deploying would be just a waste of time.

                        One other possibility to get a good copy of libwinpthread-1.dll, you could try installing a newer version of Qt for the MinGW compiler, like the current one, it's 5.14.1.

                        Z Offline
                        Z Offline
                        Zunneh
                        wrote on last edited by Zunneh
                        #13

                        @hskoglund
                        I made it finally, guess what i have done ? i changed the libstdc++-6.dll and libgcc_s_dw2-1.dll files to make the three files ( libstdc++-6.dll and libgcc_s_dw2-1.dll and libwinpthread-1.dll ) with the same date ( from 2014 ) and now it work perfectly, thanks for your Help
                        i don't know why but when i deployed the date of libstdc++-6.dll and libgcc_s_dw2-1.dll have changed ( or maybe he taked the wrong one )

                        3862a0c1-44e2-4898-b95d-f84618a67a6a-image.png

                        my english is average, please use simple words and try to be the most explicit, thank you

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved