Hi,
I don't understand why when b is created on the stack. It would cause memory leaks.Code:void A::A() { B *b = new B; b->Setup(....); }
I commented that part out, the leaks were gone. Any thoughts?
Thanks
Jack
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Thread: Memory Leak QuestionThreaded View
|
Click Here to Expand Forum to Full Width |