Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is This Thread Safe Pin
Mark Salsbery26-Dec-08 10:20
Mark Salsbery26-Dec-08 10:20 
GeneralRe: Is This Thread Safe Pin
Code-o-mat26-Dec-08 10:56
Code-o-mat26-Dec-08 10:56 
GeneralRe: Is This Thread Safe Pin
Mark Salsbery26-Dec-08 11:27
Mark Salsbery26-Dec-08 11:27 
GeneralRe: Is This Thread Safe Pin
Code-o-mat26-Dec-08 10:38
Code-o-mat26-Dec-08 10:38 
Questioncannot delete CStringArray like this? [modified] Pin
kaviniswell25-Dec-08 15:58
kaviniswell25-Dec-08 15:58 
AnswerRe: cannot delete CStringArray like this? Pin
kaviniswell25-Dec-08 16:12
kaviniswell25-Dec-08 16:12 
AnswerRe: cannot delete CStringArray like this? Pin
BobInNJ25-Dec-08 16:38
BobInNJ25-Dec-08 16:38 
GeneralRe: cannot delete CStringArray like this? [modified] Pin
kaviniswell25-Dec-08 17:31
kaviniswell25-Dec-08 17:31 
thank u for your reply. i changed the codes like this:

delete ptStrArry;
-->delete [] ptStrArry;

this can resolve the question.

but when i test the codes, for example, run the function OnBtnLoop like this:

void CListboxstrDlg::OnBtnLoop() 
{
    TRACE("-------------start loop! \n");
    for (int i = 0; i < 10000; i++)
    {
        OnBtnAddlistitem();
    }
    for (i--; i >= 0; i--)
    {
        OnBtnDellistitem();
    }     
    TRACE("-------------finish loop! \n");
}


i found the memory used from 4668k to 4876k, and when i run the funcion again, the memory used form 4876k to 5384k. so i think the program must be something wrong...

but until now, i havenot found it..... Frown | :(



but another question

modified on Friday, December 26, 2008 7:24 AM

GeneralRe: cannot delete CStringArray like this? Pin
kaviniswell25-Dec-08 17:45
kaviniswell25-Dec-08 17:45 
GeneralRe: cannot delete CStringArray like this? Pin
Richard Andrew x6426-Dec-08 0:40
professionalRichard Andrew x6426-Dec-08 0:40 
GeneralRe: cannot delete CStringArray like this? Pin
kaviniswell26-Dec-08 1:23
kaviniswell26-Dec-08 1:23 
Questionwindow in thread Pin
dene9997025-Dec-08 13:00
dene9997025-Dec-08 13:00 
AnswerRe: window in thread Pin
Richard Andrew x6425-Dec-08 13:28
professionalRichard Andrew x6425-Dec-08 13:28 
QuestionAdding a .wav file as a resource in visual studio 2008 express, Hi, I need some help with this Pin
Sadaiyappan25-Dec-08 5:57
Sadaiyappan25-Dec-08 5:57 
AnswerRe: Adding a .wav file as a resource in visual studio 2008 express, Hi, I need some help with this Pin
Richard Andrew x6425-Dec-08 8:10
professionalRichard Andrew x6425-Dec-08 8:10 
GeneralRe: Adding a .wav file as a resource in visual studio 2008 express, Hi, I need some help with this Pin
Sadaiyappan25-Dec-08 8:18
Sadaiyappan25-Dec-08 8:18 
GeneralRe: Adding a .wav file as a resource in visual studio 2008 express, Hi, I need some help with this Pin
Richard Andrew x6425-Dec-08 8:20
professionalRichard Andrew x6425-Dec-08 8:20 
QuestionCAtlRegExp Match Pin
dehseth25-Dec-08 2:41
dehseth25-Dec-08 2:41 
AnswerRe: CAtlRegExp Match Pin
Yuriy Levytskyy25-Dec-08 5:24
Yuriy Levytskyy25-Dec-08 5:24 
AnswerRe: CAtlRegExp Match Pin
Stuart Dootson25-Dec-08 22:33
professionalStuart Dootson25-Dec-08 22:33 
Questionflcose API is taking so much time to close the large file [modified] Pin
Vishal Kumar Soni25-Dec-08 0:37
Vishal Kumar Soni25-Dec-08 0:37 
QuestionCAsyncSocket in CWinThread Pin
Mustapha Rédouane24-Dec-08 23:06
Mustapha Rédouane24-Dec-08 23:06 
AnswerRe: CAsyncSocket in CWinThread Pin
Mark Salsbery25-Dec-08 6:57
Mark Salsbery25-Dec-08 6:57 
GeneralRe: CAsyncSocket in CWinThread Pin
Mustapha Rédouane25-Dec-08 23:33
Mustapha Rédouane25-Dec-08 23:33 
GeneralRe: CAsyncSocket in CWinThread Pin
Richard Andrew x6426-Dec-08 0:48
professionalRichard Andrew x6426-Dec-08 0:48 

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.