CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    1

    Pointer in the Static Variable is not cleared when unldByModuleId is called in Vxwork

    Hi All,

    I am having memory leak, like if i create .o file out of C++ code which has the function local static variable. Once after my run, when i call "unldByModuleId " function to move the current module i.e .o file and put the new one, i am getting a memory leak, where the pointer in the static variable is not cleared. Is there any way we can free the pointer during the call of "unldByModuleId ".


    Please help me in this regard

    Thanks

    Senthil

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Pointer in the Static Variable is not cleared when unldByModuleId is called in Vxwork

    I don't understand the issue. Calling "unldByModuleId " moves object files? '.o' files are typically linked together to form either an executable file, a dynamic library (".so"), or a static library (".a").

    Post code, and please use code tags, so we can see what you're doing.

    Viggy

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured