wanted CStringlist (linked list) example help on memory leaks in mfc suplied with visual c++ v4.2 
Author Message
 wanted CStringlist (linked list) example help on memory leaks in mfc suplied with visual c++ v4.2

Hi all,

Can anybody point / suggest a good example for using cstringlist to form a
linked list.
and one for the clistbox structure as  I have run into a  memory leak
problem ?

using MFC 4.2 is there any nown memory leak issues using this type of
structure ?

Does clistbox have memory leak problems ?

How do you correctly delete these structures to free up the memory they use.
I have remove all the entries in both type off structures, but fail to see
the memory use decrease, and as I repeatedly add and delete items the mory
usage appears to go up.
The common sample from microsoft seams to have the same problem with
cstringlist.

Does the common save / open dialog have any memory leak issues if called
repetedly
from inside dialog box code ?


Thanks

Robert Fernando



Wed, 14 Nov 2001 03:00:00 GMT  
 wanted CStringlist (linked list) example help on memory leaks in mfc suplied with visual c++ v4.2
I haven't had any problems.

Something like this works fine:

CStringList StringList;
StringList.AddTail("AAA");
StringList.AddTail("BBB");
StringList.AddTail("CCC");
// when StringList goes out of scope it will clean up perfectly

Paul Hampton-Smith


Quote:
> Hi all,

> Can anybody point / suggest a good example for using cstringlist to form a
> linked list.
> and one for the clistbox structure as  I have run into a  memory leak
> problem ?

> using mfc 4.2 is there any nown memory leak issues using this type of
> structure ?

> Does clistbox have memory leak problems ?

> How do you correctly delete these structures to free up the memory they
use.
> I have remove all the entries in both type off structures, but fail to see
> the memory use decrease, and as I repeatedly add and delete items the mory
> usage appears to go up.
> The common sample from microsoft seams to have the same problem with
> cstringlist.

> Does the common save / open dialog have any memory leak issues if called
> repetedly
> from inside dialog box code ?


> Thanks

> Robert Fernando



Fri, 16 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Linked List using dynamic memory allocation (URGENT request for example)

2. Memory leak in a linked list.

3. Memory leak using template linked list????

4. Memory leak using template Linked List???

5. Clearing Memory || Linked List INSIDE of a Linked List

6. Help wanted for doubly linked lists

7. Please help wit client window in MFC.

8. Link List to Link List, HELP friends

9. Help! MFC ODBC memory leaks

10. Help Please!(linked lists/dynamic memory allocation etc.)

11. ibm example, memory leak problem.

12. link list of a linked list (chained links?)

 

 
Powered by phpBB® Forum Software