Results 1 to 3 of 3

Thread: Why the program memory leaks?

  1. #1
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32

    Why the program memory leaks?

    Hi,
    I used Ice-3.1.1.
    I have a problem:
    When I inherited a class from Admin:

    #include <IceGrid/Admin.h>

    using namespace Ice;
    using namespace IceGrid;
    using namespace std;

    class MyAdmin : public Admin
    {
    public:
    MyAdmin(void);
    public:
    ~MyAdmin(void);
    }

    MyAdmin::MyAdmin(void)
    {
    }

    MyAdmin::~MyAdmin(void)
    {

    }

    I did nothing with the class ,but I detected the program memory leaks! why?

    Detected memory leaks!
    Dumping objects ->
    {998} normal block at 0x008B3E78, 48 bytes long.
    Data: <fe2dc4d87f21b9b2> 66 65 32 64 63 34 64 38 37 66 32 31 62 39 62 32
    {997} normal block at 0x008B3E08, 48 bytes long.
    Data: <::IceGrid::UserA> 3A 3A 49 63 65 47 72 69 64 3A 3A 55 73 65 72 41
    {996} normal block at 0x008B3D78, 80 bytes long.
    Data: < ; > E0 94 8A 00 A8 3B 8B 00 E0 94 8A 00 00 00 00 00
    {991} normal block at 0x008B3C98, 48 bytes long.
    Data: <779fd561878e1994> 37 37 39 66 64 35 36 31 38 37 38 65 31 39 39 34
    {990} normal block at 0x008B3C38, 32 bytes long.
    Data: <::IceGrid::UserA> 3A 3A 49 63 65 47 72 69 64 3A 3A 55 73 65 72 41
    {989} normal block at 0x008B3BA8, 80 bytes long.
    Data: < x= > E0 94 8A 00 88 EE 8A 00 78 3D 8B 00 00 00 00 00
    {984} normal block at 0x008B3738, 32 bytes long.
    Data: <::IceGrid::UserA> 3A 3A 49 63 65 47 72 69 64 3A 3A 55 73 65 72 41
    Data: <b52a26591c76fe2d> 62 35 32 61 32 36 35 39 31 63 37 36 66 65 32 64
    Data: <::IceGrid::NodeU> 3A 3A 49 63 65 47 72 69 64 3A 3A 4E 6F 64 65 55
    {520} normal block at 0x008AD198, 80 bytes long.
    Data: <P X > 50 10 8B 00 D0 A0 8A 00 58 D4 8A 00 00 00 00 00
    {515} normal block at 0x008AD138, 32 bytes long.
    Data: <d1c0a29ce34753b4> 64 31 63 30 61 32 39 63 65 33 34 37 35 33 62 34
    {514} normal block at 0x008AD0D8, 32 bytes long.
    Data: <::IceGrid::NodeU> 3A 3A 49 63 65 47 72 69 64 3A 3A 4E 6F 64 65 55
    {513} normal block at 0x008AD048, 80 bytes long.
    Data: < P > E0 94 8A 00 50 10 8B 00 E0 94 8A 00 00 00 00 00
    {508} normal block at 0x008ACFE8, 32 bytes long.
    Data: <600e78031867992f> 36 30 30 65 37 38 30 33 31 38 36 37 39 39 32 66
    {507} normal block at 0x008ACF88, 32 bytes long.
    Data: <::IceGrid::NodeD> 3A 3A 49 63 65 47 72 69 64 3A 3A 4E 6F 64 65 44
    {506} normal block at 0x008ACEF8, 80 bytes long.
    Data: < # > A8 CD 8A 00 80 9C 8A 00 20 23 8B 00 00 00 00 00
    {501} normal block at 0x008ACE98, 32 bytes long.
    Data: <be38d2d0b946fea6> 62 65 33 38 64 32 64 30 62 39 34 36 66 65 61 36
    {500} normal block at 0x008ACE38, 32 bytes long.
    Data: <::IceGrid::NodeD> 3A 3A 49 63 65 47 72 69 64 3A 3A 4E 6F 64 65 44
    {499} normal block at 0x008ACDA8, 80 bytes long.
    Data: < - > B0 2D 8B 00 F8 CE 8A 00 E0 94 8A 00 00 00 00 00
    {494} normal block at 0x008ACD48, 32 bytes long.
    Data: <dfbd5166bbdcac62> 64 66 62 64 35 31 36 36 62 62 64 63 61 63 36 32
    {493} normal block at 0x008ACCE8, 32 bytes long.
    Data: <::IceGrid::LoadB> 3A 3A 49 63 65 47 72 69 64 3A 3A 4C 6F 61 64 42
    {492} normal block at 0x008ACC58, 80 bytes long.
    Data: < > E0 94 8A 00 F8 CA 8A 00 E0 94 8A 00 00 00 00 00
    .......................
    Object dump complete.


    thank you!
    My Full namea Lei
    My company:Channelsoft (Beijing) Technology Co., Ltd.
    http://www.channelsoft.com.cn/

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Please see this FAQ.

  3. #3
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32
    Thank you!
    My Full namea Lei
    My company:Channelsoft (Beijing) Technology Co., Ltd.
    http://www.channelsoft.com.cn/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 2.1.2 leaks when checking with valgrind
    By hobu in forum Help Center
    Replies: 5
    Last Post: 05-05-2009, 09:44 AM
  2. About memory leak in MFC program with Ice2.1.2
    By ehero in forum Help Center
    Replies: 1
    Last Post: 07-14-2005, 01:23 PM
  3. About memory leak of Servant Program
    By ehero in forum Help Center
    Replies: 1
    Last Post: 07-12-2005, 11:08 PM
  4. Replies: 3
    Last Post: 04-28-2005, 11:08 AM
  5. in MFC dialog project Detected memory leaks!
    By dzw in forum Help Center
    Replies: 2
    Last Post: 07-28-2004, 11:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •