Strange MemoryLeaks



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/11/2008 at 16:33, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   11 
    Platform:      
    Language(s) :     C++  ;

    ---------
    Hi :)

    I have a problem with MemoryLeaks and I can't get the position where they occur.

    I have a ToolData plugin. I click on it in the plugin menu and do some actions in the editor. After closing Cinema 4D everything is all right.

    When I click on the ToolData and close Cinema 4D without using the tool in the editor these happens:

    > \> gui_xgeframe.cp, Line 1237 -> 32 Bytes at 0x0x120212bd0! \> gui_xgeframe.cp, Line 1237 -> 32 Bytes at 0x0x12020e580! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddfc80! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddfbd0! \> ge_smart_link.c, Line 432 -> 72 Bytes at 0x0x12002dfd0! \> cgui_menu.cpp, Line 2424 -> 336 Bytes at 0x0x11bb5c9a0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf9c0! \> ge_smart_link.c, Line 432 -> 72 Bytes at 0x0x12002df00! \> cgui_menu.cpp, Line 184 -> 336 Bytes at 0x0x11bb5c7b0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf910! \> ge_container.cp, Line 545 -> 24 Bytes at 0x0x12020dda0! \> cgui_menu.cpp, Line 3273 -> 624 Bytes at 0x0x11bad4ba0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fdded60! \> ge_container.cp, Line 545 -> 24 Bytes at 0x0x12020dc80! \> cgui_menu.cpp, Line 85 -> 624 Bytes at 0x0x11bad3a00! \> cgui_main.cpp, Line 334 -> 440 Bytes at 0x0x10eb89de0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddeb50! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf7b0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf700! \> ge_smart_link.c, Line 432 -> 72 Bytes at 0x0x12002de30! \> cgui_menu.cpp, Line 2424 -> 336 Bytes at 0x0x11bb5c5c0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf020! \> ge_smart_link.c, Line 432 -> 72 Bytes at 0x0x12002d610! \> cgui_coffeedial, Line 2037 -> 336 Bytes at 0x0x11bb5c3d0! \> ge_container.cp, Line 1377 -> 32 Bytes at 0x0x12020b5b0! \> ge_container.cp, Line 545 -> 24 Bytes at 0x0x12020b370! \> ge_container.cp, Line 1377 -> 32 Bytes at 0x0x12020b400! \> ge_container.cp, Line 1377 -> 32 Bytes at 0x0x12020c4e0! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf4f0! \> ge_smart_link.c, Line 432 -> 72 Bytes at 0x0x12002d7b0! \> cgui_coffeedial, Line 2037 -> 336 Bytes at 0x0x11bb5c1e0! \> cgui_main.cpp, Line 316 -> 600 Bytes at 0x0x11bad0810! \> cgui_main.cpp, Line 356 -> 520 Bytes at 0x0x119762640! \> cgui_coffeedial, Line 1528 -> 624 Bytes at 0x0x11b839ff0! \> cgui_coffeedial, Line 2762 -> 1328 Bytes at 0x0x10ecd1570! \> ge_smart_link.c, Line 331 -> 40 Bytes at 0x0x11fddf440! \> ge_smart_link.c, Line 432 -> 72 Bytes at 0x0x12002d540! \> cgui_coffeedial, Line 1539 -> 336 Bytes at 0x0x11bb5bc10! \> cgui_main.cpp, Line 316 -> 600 Bytes at 0x0x11b838e50! \> cgui_main.cpp, Line 356 -> 520 Bytes at 0x0x1197610c0! \> cgui_coffeedial, Line 1528 -> 624 Bytes at 0x0x11b836530! \> cgui_coffeedial, Line 2762 -> 1328 Bytes at 0x0x10ecca4a0! \> cgui_groups.cpp, Line 681 -> 8 Bytes at 0x0x12020bd90! \> cgui_groups.cpp, Line 680 -> 8 Bytes at 0x0x12020be20! \> cgui_groups.cpp, Line 679 -> 8 Bytes at 0x0x12020beb0! \> cgui_groups.cpp, Line 678 -> 8 Bytes at 0x0x12020bf40! \> cgui_groups.cpp, Line 674 -> 8 Bytes at 0x0x12020bfd0! \> cgui_groups.cpp, Line 673 -> 8 Bytes at 0x0x12020c060! \> cgui_groups.cpp, Line 672 -> 8 Bytes at 0x0x12020c8d0! \> cgui_groups.cpp, Line 671 -> 8 Bytes at 0x0x12020c0f0! \> cgui_groups.cpp, Line 681 -> 8 Bytes at 0x0x12020c570! \> cgui_groups.cpp, Line 680 -> 8 Bytes at 0x0x12020c2a0! \> cgui_groups.cpp, Line 679 -> 8 Bytes at 0x0x12020c330! \> cgui_groups.cpp, Line 678 -> 8 Bytes at 0x0x12020c3c0! \> cgui_groups.cpp, Line 674 -> 8 Bytes at 0x0x12020c180! \> cgui_groups.cpp, Line 673 -> 8 Bytes at 0x0x12020cc30! \> cgui_groups.cpp, Line 672 -> 8 Bytes at 0x0x12020c210! \> cgui_groups.cpp, Line 671 -> 8 Bytes at 0x0x12020c720! \> cgui_main.cpp, Line 316 -> 600 Bytes at 0x0x11b82e9d0! \> cgui_main.cpp, Line 356 -> 520 Bytes at 0x0x11975c2d0! \> cgui_coffeedial, Line 1528 -> 624 Bytes at 0x0x11b833050! \> cgui_coffeedial, Line 2762 -> 1328 Bytes at 0x0x10eca8850! \> dlg_activetool., Line 381 -> 80 Bytes at 0x0x12002d3a0! \> 63 Blocks \>

    I can do what I want. I get 63 blocks of memory leaks.
    I deleted all methods of the ToolData class so I have no idea which code is called which is responsible for the leaks. Can anyone give me a tip? I use Xcode 3.2.1

    Thanks a lot.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/11/2008 at 16:40, xxxxxxxx wrote:

    Hi Matthias,

    Can you confirm the leaks?

    > <code>
    > class MyTool : public ToolData {
    > };
    >
    >
    > Bool PluginStart(void)
    > {     
    >      RegisterToolPlugin(123456789, "MyTool", 0, "ok", gNew MyTool);
    >      return TRUE;
    > }</code>

    Call the tool in your menu but don't use it. Click on it, and close Cinema 4D - On my system I get 43 memory leaks.

    Thank you. Cheers,

    Sebastian



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/11/2008 at 01:11, xxxxxxxx wrote:

    I can confirm this. It seems Mac only.

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/11/2008 at 01:18, xxxxxxxx wrote:

    Thanks :)


Log in to reply