Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. flavioe

    Memory Leak using new statement

    so if i do printf("param->List %p", param->List ) ; printf("m_List %p", m_List ) ; befor the execution of Class2->Init(); I will receive Output: 0034a Output: 0034a After execution of Class2->Init(); I will receive Output: 00000 Output: 0034a
  2. flavioe

    Memory Leak using new statement

    Miros, The first thing I have learned on C++ is that when you use the new Statement the memory allocated by it will be NEVER freed until a delete statement. Even if in place of ThreadParam * param = new ThreadParam(); I will put a Class1 variable with the name m_ThreadParam like: ThreadParam *...
  3. flavioe

    Memory Leak using new statement

    Thanks for the fast answer! param->List is a pointer to a list (the std template list) that is a private member of Class1, and myFlag is the last member of the Class2.
  4. flavioe

    Memory Leak using new statement

    I'm realy don't know what is happening with my code, I'm doing a legal memory allocation on one variable and the VC++ 6.0 simply create another variable on the same memory space. The program is very large and I will not post the whole program, I will try to post the relevant part of the code...

Part and Inventory Search

Back
Top