Home Bug Reports

Demo code memory leak in VC80

I run Demo code 'MFCHELLOC' in visual studio 2005. After runing and closing the application in debug model, I find memory leak info in output bar.


I write the simple code and just only include '<ice/ice.h>'. Same memeroy leak info as do.

How can I do for this? Please help me.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Could you please set your signature as described on [thread=1697]this thread[/thread]?

    Thanks,

    Benoit.
  • SystemSystem Member
    This is my signature. Need u help.:)
  • SystemSystem Member
    Nobody can help me:mad:
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Sorry, we didn't get a chance to look closer into this yet -- we're quite busy with preparing the Ice 3.1 release ;) Could you perhaps provide more information on the memory leak reported by Visual Studio? Also, did you try to use another memory leak detector such as Purify? Please also indicate the Ice version you're using and the version of your operating system.

    Btw, if you need urgent assistance on this matter, we can provide you commercial support, if that's the case, please contact us at [email protected].

    Cheers,
    Benoit.
  • SystemSystem Member
    Some information

    I think ice can run very good with MFC, but the case I meet make me not keep the idea.

    I can surport those:

    1. Simple Code
    I just only include <ice/ice.h> in file <stdafx.h>.
    2. Memory leak info in VS2005:

    Detected memory leaks!
    Dumping objects ->
    {167} normal block at 0x003F7340, 32 bytes long.
    Data: <setServerProcess> 73 65 74 53 65 72 76 65 72 50 72 6F 63 65 73 73
    {166} normal block at 0x003F72E0, 32 bytes long.
    Data: <setReplicatedAda> 73 65 74 52 65 70 6C 69 63 61 74 65 64 41 64 61
    {165} normal block at 0x003F6968, 32 bytes long.
    Data: <setAdapterDirect> 73 65 74 41 64 61 70 74 65 72 44 69 72 65 63 74
    {164} normal block at 0x003F6908, 32 bytes long.
    Data: <::Ice::LocatorRe> 3A 3A 49 63 65 3A 3A 4C 6F 63 61 74 6F 72 52 65
    {163} normal block at 0x003F68A8, 32 bytes long.
    Data: <setServerProcess> 73 65 74 53 65 72 76 65 72 50 72 6F 63 65 73 73
    {162} normal block at 0x003F6A30, 32 bytes long.
    Data: <setReplicatedAda> 73 65 74 52 65 70 6C 69 63 61 74 65 64 41 64 61
    {160} normal block at 0x003F6F68, 32 bytes long.
    Data: <setAdapterDirect> 73 65 74 41 64 61 70 74 65 72 44 69 72 65 63 74
    {159} normal block at 0x003F7040, 32 bytes long.
    Data: <::Ice::ServerNot> 3A 3A 49 63 65 3A 3A 53 65 72 76 65 72 4E 6F 74
    {158} normal block at 0x003F6FC8, 56 bytes long.
    Data: < g? n? g? > B8 67 3F 00 90 6E 3F 00 B8 67 3F 00 00 00 00 00
    {155} normal block at 0x003F6E30, 12 bytes long.
    Data: < % > 14 1A 25 10 02 00 00 00 00 CD CD CD
    {154} normal block at 0x003F6F08, 32 bytes long.
    Data: <::Ice::ObjectNot> 3A 3A 49 63 65 3A 3A 4F 62 6A 65 63 74 4E 6F 74
    {153} normal block at 0x003F6E90, 56 bytes long.
    Data: < k? j? o? > F0 6B 3F 00 A8 6A 3F 00 C8 6F 3F 00 00 00 00 00
    {150} normal block at 0x003F6CD8, 12 bytes long.
    Data: < % > DC 19 25 10 02 00 00 00 00 CD CD CD
    {149} normal block at 0x003F6DC0, 48 bytes long.
    Data: <::Ice::AdapterAl> 3A 3A 49 63 65 3A 3A 41 64 61 70 74 65 72 41 6C
    {148} normal block at 0x003F6D48, 56 bytes long.
    Data: < g? j? g? > B8 67 3F 00 A8 6A 3F 00 B8 67 3F 00 00 00 00 00
    {145} normal block at 0x003F6B80, 12 bytes long.
    Data: < % > A0 19 25 10 02 00 00 00 00 CD CD CD
    {144} normal block at 0x003F6C68, 48 bytes long.
    Data: <::Ice::InvalidRe> 3A 3A 49 63 65 3A 3A 49 6E 76 61 6C 69 64 52 65
    {143} normal block at 0x003F6BF0, 56 bytes long.
    Data: < g? n? g? > B8 67 3F 00 90 6E 3F 00 B8 67 3F 00 00 00 00 00
    {140} normal block at 0x003F69E8, 12 bytes long.
    Data: <` % > 60 19 25 10 02 00 00 00 00 CD CD CD
    {139} normal block at 0x003F6B20, 32 bytes long.
    Data: <::Ice::AdapterNo> 3A 3A 49 63 65 3A 3A 41 64 61 70 74 65 72 4E 6F
    {138} normal block at 0x003F6AA8, 56 bytes long.
    Data: <Hm? g? n? > 48 6D 3F 00 B8 67 3F 00 90 6E 3F 00 00 00 00 00
    {135} normal block at 0x003F65C0, 12 bytes long.
    Data: <( % > 28 19 25 10 02 00 00 00 00 CD CD CD
    {134} normal block at 0x003F6570, 20 bytes long.
    Data: <pe? pe? pe? > 70 65 3F 00 70 65 3F 00 70 65 3F 00 CD CD CD CD
    {132} normal block at 0x003F6830, 56 bytes long.
    Data: <0h? 0h? 0h? > 30 68 3F 00 30 68 3F 00 30 68 3F 00 CD CD CD CD
    {131} normal block at 0x003F67B8, 56 bytes long.
    Data: <Hm? j? o? > 48 6D 3F 00 A8 6A 3F 00 C8 6F 3F 00 CD CD CD CD
    {130} normal block at 0x003F6728, 80 bytes long.
    Data: <hB > 68 42 15 00 FF FF FF FF 00 00 00 00 00 00 00 00
    {129} normal block at 0x003F66E0, 12 bytes long.
    Data: <(e? (e? f? > 28 65 3F 00 28 65 3F 00 88 66 3F 00
    {128} normal block at 0x003F6688, 24 bytes long.
    Data: <0B > 30 42 15 00 FF FF FF FF 00 00 00 00 00 00 00 00
    {127} normal block at 0x003F6630, 28 bytes long.
    Data: < A > F8 41 15 00 FF FF FF FF 00 00 00 00 00 00 00 00
    {125} normal block at 0x003F6528, 12 bytes long.
    Data: < f? f? > E0 66 3F 00 E0 66 3F 00 CD CD CD CD
    {124} normal block at 0x003F64D0, 24 bytes long.
    Data: < > 00 00 00 00 CD CD CD CD CD CD CD CD CD CD CD CD
    Object dump complete.
    程序“[4224] IceTest.exe: 本机”已退出,返回值为 2 (0x2)。
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    This is nothing to worry about; see http://www.zeroc.com/vbulletin/showthread.php?t=302

    Cheers,
    Bernard
  • SystemSystem Member
    Thanks a lot, I see.

    But I hope nothing aoubt leaks show. Hope Ice more better!
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    The MFC leak detector is not very good. If you really want to find & fix memory leaks in your applications then I would suggest using a better tool such as purify.
Sign In or Register to comment.