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. Analyse memory leak [almost solved]
QtWS25 Last Chance

Analyse memory leak [almost solved]

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 2.3k Views
  • 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.
  • F Offline
    F Offline
    Francknos
    wrote on last edited by
    #1

    Hi,

    Now I ended my application, I look for an application, tools, or something to analyse if there are memory leak.

    Someone has already used this on windows machine?

    Thx

    1 Reply Last reply
    0
    • M Offline
      M Offline
      msue
      wrote on last edited by
      #2

      If you use Visual Studio you can use Visual Leak Detector.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Francknos
        wrote on last edited by
        #3

        I use QtCreator.
        I try to import my project into MVS but it doesn't work.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          msue
          wrote on last edited by
          #4

          First of all: You will need the professional version of Visual Studio and Qt's Visual Studio AddIn installed to be able to compile and debug Qt programs in VS; maybe the community edition will suffice some day in the future.

          You can create a solution file from your .pro-file using the command

          @%QTDIR%\bin\qmake -spec %QMAKESPEC% -tp vc -recursive@

          externally and load the solution into VS as any other solution file where QMAKESPEC is something like C:\Qt\5.4.0\mkspecs\win32-msvc2013.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Francknos
            wrote on last edited by
            #5

            I try to do this.

            I have an error :

            Could not find qmake configuration file QMAKESPEC.
            Error processing project file : C:/..... x.pro

            1 Reply Last reply
            0
            • M Offline
              M Offline
              msue
              wrote on last edited by
              #6

              Please see my edit above

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Francknos
                wrote on last edited by
                #7

                Yes I saw.

                Thanks for your help !

                it's works for the creation of solution under MVS

                I try to compile but I have one error :
                @Erreur 1 error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets 64 5 ULD@

                Thx again ;-)

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Francknos
                  wrote on last edited by
                  #8

                  I'm downloading tools ...

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    msue
                    wrote on last edited by
                    #9

                    Seems you have more than one VS installed and maybe qmake does not know which to use.

                    You can try the following: In the start menu find Microsoft Visual Studio 2012 and there Visual Studio Tools and there open the correct Command Prompt, change to the directory of your .pro-file and there use the command above:

                    @%QTDIR%\bin\qmake -spec %QMAKESPEC% -tp vc -recursive@

                    EDIT: There is also a menu point QT5/Open Qt Project file (.pro) in VS after you installed the Qt's VS Add-In. Maybe its working better in the meanwhile (It tended to be rather slow with big programs and I forgot about it).

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Francknos
                      wrote on last edited by
                      #10

                      I just click on upgrade solution in MVS it's work, compile... But I have too many error in include file, not in my projet but in relationship with it.

                      Thanks you again but in think i'll give up.

                      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