Click here to Skip to main content
15,880,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multithreading Pin
Mattias G1-Dec-08 2:19
Mattias G1-Dec-08 2:19 
GeneralRe: multithreading Pin
Laan821-Dec-08 2:31
Laan821-Dec-08 2:31 
AnswerRe: multithreading Pin
Code-o-mat1-Dec-08 2:06
Code-o-mat1-Dec-08 2:06 
GeneralRe: multithreading Pin
Laan821-Dec-08 2:19
Laan821-Dec-08 2:19 
GeneralRe: multithreading Pin
David Crow1-Dec-08 10:36
David Crow1-Dec-08 10:36 
GeneralRe: multithreading Pin
Laan821-Dec-08 11:20
Laan821-Dec-08 11:20 
QuestionRelease memory using 'delete' operator for 2 dimensional array Pin
Nikesh Jagtap30-Nov-08 23:40
Nikesh Jagtap30-Nov-08 23:40 
QuestionRelease memory using 'delete' operator for 2 dimensional array Pin
Nikesh Jagtap30-Nov-08 23:40
Nikesh Jagtap30-Nov-08 23:40 
I want to release memory for
int a[4][6] which is allocated dynamically.
I m allocating this memory as
for(int i = 0;i<4; i++)
{
a[i] = new int [6];
}
And deallocating it as
for(int j = 0; j<4; j++)
{
delete []a[i];
}

Is the process of allocating & deallocating memory is right or not?

Thanks in advance.


Regards
Nikesh
AnswerRe: Release memory using 'delete' operator for 2 dimensional array Pin
Code-o-mat30-Nov-08 23:54
Code-o-mat30-Nov-08 23:54 
AnswerRe: Release memory using 'delete' operator for 2 dimensional array Pin
CPallini1-Dec-08 1:33
mveCPallini1-Dec-08 1:33 
GeneralRe: Release memory using 'delete' operator for 2 dimensional array Pin
Code-o-mat1-Dec-08 2:41
Code-o-mat1-Dec-08 2:41 
AnswerRe: Release memory using 'delete' operator for 2 dimensional array Pin
David Crow1-Dec-08 10:41
David Crow1-Dec-08 10:41 
QuestionErr Message :"This file is read-only. You must save to a different filename." Pin
josip cagalj30-Nov-08 23:36
josip cagalj30-Nov-08 23:36 
AnswerRe: Err Message :"This file is read-only. You must save to a different filename." Pin
Hans Dietrich30-Nov-08 23:45
mentorHans Dietrich30-Nov-08 23:45 
AnswerRe: Err Message :"This file is read-only. You must save to a different filename." Pin
Code-o-mat30-Nov-08 23:48
Code-o-mat30-Nov-08 23:48 
QuestionHow to attact edit box to scroll bar to display values in edit box when scrolled up or down Pin
puppya30-Nov-08 23:14
puppya30-Nov-08 23:14 
AnswerRe: How to attact edit box to scroll bar to display values in edit box when scrolled up or down Pin
Rajesh R Subramanian30-Nov-08 23:41
professionalRajesh R Subramanian30-Nov-08 23:41 
QuestionRunModalLoop problem Pin
hrishiS30-Nov-08 23:11
hrishiS30-Nov-08 23:11 
AnswerRe: RunModalLoop problem Pin
Mattias G1-Dec-08 3:17
Mattias G1-Dec-08 3:17 
GeneralRe: RunModalLoop problem Pin
hrishiS8-Dec-08 0:17
hrishiS8-Dec-08 0:17 
QuestionHow to prevent execution of multiple instances of my application ? Pin
kapardhi30-Nov-08 22:37
kapardhi30-Nov-08 22:37 
AnswerRe: How to prevent execution of multiple instances of my application ? Pin
_AnsHUMAN_ 30-Nov-08 22:43
_AnsHUMAN_ 30-Nov-08 22:43 
AnswerRe: How to prevent execution of multiple instances of my application ? Pin
David Crow1-Dec-08 10:48
David Crow1-Dec-08 10:48 
Questionextending or customizing printer dialog progrmmatically in VC++[modified] Pin
Member 372884130-Nov-08 21:45
Member 372884130-Nov-08 21:45 
AnswerRe: extending or customizing printer dialog progrmmatically in VC+ Pin
SandipG 30-Nov-08 22:03
SandipG 30-Nov-08 22:03 

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.