Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2007
russule 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/
Reply With Quote
  #2 (permalink)  
Old 01-10-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Please see this FAQ.
Reply With Quote
  #3 (permalink)  
Old 01-10-2007
russule 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/
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
2.1.2 leaks when checking with valgrind hobu Help Center 2 07-21-2005 02:03 PM
About memory leak in MFC program with Ice2.1.2 ehero Help Center 1 07-14-2005 02:23 PM
About memory leak of Servant Program ehero Help Center 1 07-13-2005 12:08 AM
Does it mean that there are memory leak problems in my program? yrh79 Help Center 3 04-28-2005 12:08 PM
in MFC dialog project Detected memory leaks! dzw Help Center 2 07-29-2004 12:15 AM


All times are GMT -4. The time now is 11:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.