Analyse memory leak [almost solved]



  • 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



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



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



  • 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.



  • I try to do this.

    I have an error :

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



  • Please see my edit above



  • 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 ;-)



  • I'm downloading tools ...



  • 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).



  • 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.


Log in to reply
 

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