IBM Support

PI74347: RHAPSODY 8.1.5 HAS POSSIBLE MEMORY LEAK WHEN RUNNING ANIMATION WITH VISUAL STUDIO MFC PROJECT. NORMAL LIBRARY WAS FINE.

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Product : Rhapsody 8.1.5
    OS : Windows 8.1
    Visual Studio : 2010
    Library Type : LIB
    
    Customer made a program that designed in Rhapsody 8.1.5 into a
    Library and link it to a Visual Studio MFC project.
    According to memory leaks detection functionality in Visual
    Studio, memory leak detected in the using just following code.
    
    OXF::initialize();
    OXF::cleanup();
    
    If create a library in Rhapsody, it does not matter if they make
    it generic. However, if create an Animation version of the
    library to see what is being animated, and then call it from MFC
    program and exit, a memory leak appears.
    
    ----- Memory Leak from Visual Studio -----
    
    Detected memory leaks!
    Dumping objects ->
    {1242} normal block at 0x00D1E9E0, 28 bytes long.
    Data: <4     ?         > 34 AD F2 00 10 9B 3F 00 FF FF FF FF 00
    00 00 00
    {1241} normal block at 0x00D1E810, 400 bytes long.
    Data: <                > CD CD CD CD CD CD CD CD CD CD CD CD CD
    CD CD CD
    {1240} normal block at 0x00D1E798, 60 bytes long.
    Data: <     2          > AC D8 F2 00 99 32 CD CD 00 00 00 00 D0
    E4 8D 10
    {1238} normal block at 0x00D1E708, 8 bytes long.
    Data: <        > BC AD F2 00 00 02 00 00
    {1237} normal block at 0x00D1E438, 48 bytes long.
    Data: <     2        B > D8 D9 F2 00 99 32 CD CD 00 00 00 00 F0
    EA 42 0A
    {1236} normal block at 0x00D1E650, 124 bytes long.
    Data: <p    2      `N  > 70 D6 F2 00 99 32 CD CD 00 00 00 00 60
    4E 1C 08
    {1235} normal block at 0x00D1E510, 256 bytes long.
    Data: <_omCloseHandle  > 5F 6F 6D 43 6C 6F 73 65 48 61 6E 64 6C
    65 00 CD
    {1234} normal block at 0x00D1E3C8, 52 bytes long.
    Data: <     2      @ n > B8 D2 F2 00 99 32 CD CD 00 00 00 00 40
    85 6E 0A
    {1226} normal block at 0x00D1DD90, 12 bytes long.
    Data: <<           > 3C DF F2 00 00 00 00 00 B8 1A F4 00
    {1224} normal block at 0x00D1D650, 8 bytes long.
    Data: <        > 18 BB F2 00 B0 1A F4 00
    Object dump complete.
    '[2096] ProjectLibTester.exe: Native' Program finished(Code: 0
    (0x0)).
    
    --------------------------------------------------------
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The leak occured because "_omCloseHandle" string was not     *
    * free. It is saved as a part of AOMThread instance, connected *
    * to OMHandleCloser thread.                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Explicit destruction of animation proxy AOMThread  instance
    added to OXF::cleanup function for OMHandleCloser singleton
    object.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI74347

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    815

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-01-03

  • Closed date

    2017-06-12

  • Last modified date

    2017-06-12

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R815 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 815

Reference #: PI74347

Modified date: 12 June 2017