Topic
6 replies Latest Post - ‏2012-01-25T17:21:50Z by SystemAdmin
rupike
rupike
4 Posts
ACCEPTED ANSWER

Pinned topic Problemm with Purify on Windows 7 64-bit to get results

‏2012-01-23T08:49:25Z |
Hello!

I have installed the the Purify 7.01 on windows 7 64-bit using the remarks from the link - http://www-01.ibm.com/support/docview.wss?uid=swg21449374 and then installed a update 7.0.0.x-RATL-FLEXC-WIN.zip​.
Next steps that I did to test how Purify work:
  • Run Purify and select "Run your program using Purify".
  • Select my program to run. My application:
int main()
{
char * t = (char *) calloc(10,1);
Sleep(10000);
return 0;
}
  • Click "Setting..."->PowerCheck sheet->Configure.
I see that my application has myapp.exe(No Relocs) and I can not to change the error level

  • Click "Run" button to run.
  • I have no any problem with my source.

Please help.

Yevgeni
Updated on 2012-01-25T17:21:50Z at 2012-01-25T17:21:50Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2948 Posts
    ACCEPTED ANSWER

    Re: Problemm with Purify on Windows 7 64-bit to get results

    ‏2012-01-23T17:08:12Z  in response to rupike
    Hi Yevgeni,

    >
    > I see that my application has myapp.exe(No Relocs) and I can
    > not to change the error level
    >

    Be sure to rebuild your application using all the "Recommended
    Settings" (see attached HTM file). The /fixed:no linker option
    will create the application with relocation information and
    this allows Purify to instrument the application. Be sure to
    use the other recommended settings as well.

    Best regards,
    Don
    • rupike
      rupike
      4 Posts
      ACCEPTED ANSWER

      Re: Problemm with Purify on Windows 7 64-bit to get results

      ‏2012-01-24T09:05:33Z  in response to SystemAdmin
      Hi Don!

      Thank you for your answer! I have read the xml and did all how was defined in it.
      After rebuild my project I got :

      Command line warning D9002 : ignoring unknown option '/fixed:no

      Started "Purify" app and selected my application see attached image.
      Pressed "Run" button (my d:\ytomsov\Rational\Purify\cache\ folder is empty before run)
      Instrumentation started
      Process finished.
      I did nos see any memory leak in my test application.
      Additionally I have tried to run "Purify" from VC2005:
      Menu: PurifyPlus->Puryfy->RunControl -> all items disabled.

      Regard
      Yevgeni
      • SystemAdmin
        SystemAdmin
        2948 Posts
        ACCEPTED ANSWER

        Re: Problemm with Purify on Windows 7 64-bit to get results

        ‏2012-01-24T19:02:34Z  in response to rupike
        Hi Yevgeni,

        Double-check to make sure you are adding the /Fixed:NO option in the right place.
        Note that this is a LINKER option, not a COMPILER option. In VS2005:

        1. Project -> Properties
        2. Add the /FIXED:NO option under "Configuration Properties -> Linker -> Command Line"
        3. See attached image.

        Best regards,
        Don
        • rupike
          rupike
          4 Posts
          ACCEPTED ANSWER

          Re: Problemm with Purify on Windows 7 64-bit to get results

          ‏2012-01-25T09:48:00Z  in response to SystemAdmin
          Hi Don!

          Thank you. I have added the linker flag and rebuilt my project,run Purify and started Purify to test my application. I have not got any indication that in my application was memory leak:

          void F()
          {
          char * t = (char *) calloc(10,1);

          Sleep(10000);
          }

          void main()
          {
          F();
          char * t = (char *) calloc(10,1);
          Sleep(10000);
          return 0;

          }

          Additionally at the end of test Purify throw dialog (see attached file)
          Yevgeni
          • SystemAdmin
            SystemAdmin
            2948 Posts
            ACCEPTED ANSWER

            Re: Problemm with Purify on Windows 7 64-bit to get results

            ‏2012-01-25T17:21:50Z  in response to rupike
            Hi Yevgeni,

            I don't have a 64-bit Windows 7 machine at my disposal, but it all works fine
            under VS2005 on my Windows XP machine:

            1. I created a brand new VS2005 Win32 Console project
            2. I copied in your sample code (making only minor changes so it would
            compile).
            3. The only project settings I changed were:
            a. Debug Information Format = Program Database (/Zi)
            b. Add Linker Option = /FIXED:NO

            After building the application and running it under Purify, I see 20 leaked bytes.
            See attached image.

            Regards,
            Don
  • rupike
    rupike
    4 Posts
    ACCEPTED ANSWER

    Re: Problemm with Purify on Windows 7 64-bit to get results

    ‏2012-01-24T09:04:38Z  in response to rupike
    Hi Don!

    Thank you for your answer! I have read the xml and did all how was defined in it.
    After rebuild my project I got :

    Command line warning D9002 : ignoring unknown option '/fixed:no

    • Started "Purify" app and selected my application see attached image.
    • Pressed "Run" button (my d:\ytomsov\Rational\Purify\cache\ folder is empty before run)
    • Instrumentation started
    • Process finished.
    • I did nos see any memory leak in my test application.

    Additionally I have tried to run "Purify" from VC2005:
    Menu: PurifyPlus->Puryfy->RunControl -> all items disabled.

    Regard
    Yevgeni