Click here to Skip to main content
15,906,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: draw lines on desktop help!! Pin
so0_lanhlung217-Jun-11 17:41
so0_lanhlung217-Jun-11 17:41 
GeneralRe: draw lines on desktop help!! Pin
Albert Holguin17-Jun-11 20:59
professionalAlbert Holguin17-Jun-11 20:59 
QuestionMemory increases while inserting items in list Pin
VCProgrammer15-Jun-11 21:38
VCProgrammer15-Jun-11 21:38 
AnswerRe: Memory increases while inserting items in list Pin
JV999915-Jun-11 22:16
professionalJV999915-Jun-11 22:16 
GeneralRe: Memory increases while inserting items in list Pin
Stefan_Lang15-Jun-11 23:02
Stefan_Lang15-Jun-11 23:02 
GeneralRe: Memory increases while inserting items in list Pin
JV999915-Jun-11 23:15
professionalJV999915-Jun-11 23:15 
AnswerRe: Memory increases while inserting items in list [modified] Pin
Stefan_Lang15-Jun-11 22:29
Stefan_Lang15-Jun-11 22:29 
AnswerRe: Memory increases while inserting items in list Pin
Maximilien15-Jun-11 23:59
Maximilien15-Jun-11 23:59 
That's normal.

You add/create data to a datastructure.

To remove the problem just remove the items from the list ( and be certain to do house-cleaning )

are you doing/allocating/creating your list :

(pseudo code-ish)

int myArray[50000];
for ( int i = 0; i < 50000; i++)
   myArray[i] = i;


or

int* myArray = malloc (sizeof(int) * 50000);
for ( int i = 0 i < 50000; i++ )
   myArray[i] = i;


or
std::list<int> myList;
for ( unsigned int i = 0; i < 50000; i++ )
   myList.push_back( i );

Watched code never compiles.

AnswerRe: Memory increases while inserting items in list Pin
Chris Losinger16-Jun-11 3:41
professionalChris Losinger16-Jun-11 3:41 
JokeRe: Memory increases while inserting items in list Pin
Richard MacCutchan16-Jun-11 4:54
mveRichard MacCutchan16-Jun-11 4:54 
GeneralRe: Memory increases while inserting items in list Pin
Niklas L16-Jun-11 8:06
Niklas L16-Jun-11 8:06 
GeneralRe: Memory increases while inserting items in list Pin
Rhuros16-Jun-11 22:04
professionalRhuros16-Jun-11 22:04 
QuestionRe: Memory increases while inserting items in list Pin
David Crow16-Jun-11 8:00
David Crow16-Jun-11 8:00 
Question[Win32]Set bitmap to button Pin
Member 296547115-Jun-11 8:14
Member 296547115-Jun-11 8:14 
AnswerRe: [Win32]Set bitmap to button Pin
Chris Losinger15-Jun-11 8:23
professionalChris Losinger15-Jun-11 8:23 
GeneralRe: [Win32]Set bitmap to button Pin
Member 296547115-Jun-11 8:28
Member 296547115-Jun-11 8:28 
GeneralRe: [Win32]Set bitmap to button Pin
Chris Losinger15-Jun-11 8:33
professionalChris Losinger15-Jun-11 8:33 
GeneralRe: [Win32]Set bitmap to button Pin
Member 296547115-Jun-11 9:01
Member 296547115-Jun-11 9:01 
GeneralRe: [Win32]Set bitmap to button Pin
Richard MacCutchan15-Jun-11 21:15
mveRichard MacCutchan15-Jun-11 21:15 
GeneralRe: [Win32]Set bitmap to button Pin
Member 296547115-Jun-11 22:34
Member 296547115-Jun-11 22:34 
GeneralRe: [Win32]Set bitmap to button [modified] Pin
Richard MacCutchan16-Jun-11 3:22
mveRichard MacCutchan16-Jun-11 3:22 
AnswerRe: [Win32]Set bitmap to button Pin
Abhi Lahare15-Jun-11 8:32
Abhi Lahare15-Jun-11 8:32 
GeneralRe: [Win32]Set bitmap to button Pin
Member 296547115-Jun-11 8:35
Member 296547115-Jun-11 8:35 
QuestionCAsyncSocket - Connection Recovery Pin
burns86315-Jun-11 6:31
burns86315-Jun-11 6:31 
AnswerRe: CAsyncSocket - Connection Recovery Pin
burns86316-Jun-11 3:18
burns86316-Jun-11 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.