Click here to Skip to main content
15,916,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: plot Library? Pin
prasad_som5-Mar-07 0:06
prasad_som5-Mar-07 0:06 
QuestionTo get the space in pendrive Pin
Vjys4-Mar-07 23:41
Vjys4-Mar-07 23:41 
AnswerRe: To get the space in pendrive Pin
Michael Dunn5-Mar-07 12:40
sitebuilderMichael Dunn5-Mar-07 12:40 
GeneralRe: To get the space in pendrive Pin
Vjys5-Mar-07 19:16
Vjys5-Mar-07 19:16 
GeneralRe: To get the space in pendrive Pin
Michael Dunn5-Mar-07 21:06
sitebuilderMichael Dunn5-Mar-07 21:06 
GeneralRe: To get the space in pendrive Pin
Vjys6-Mar-07 2:43
Vjys6-Mar-07 2:43 
QuestionArray of objects without default constructor gives runtime error Pin
sawerr4-Mar-07 23:38
sawerr4-Mar-07 23:38 
AnswerRe: Array of objects without default constructor gives runtime error Pin
BadKarma4-Mar-07 23:50
BadKarma4-Mar-07 23:50 
Hi,

instead of deleting the array
delete[] o;
which you can't or at least shouldn't because its not allocated (hence it isn't on the heap but on the stack).
You need to delete the allocated one objects one by one
for ( int i = 0; i < 8 ; i++)
{
delete o[i];
}








codito ergo sum

GeneralRe: Array of objects without default constructor gives runtime error Pin
sawerr5-Mar-07 0:12
sawerr5-Mar-07 0:12 
AnswerRe: Array of objects without default constructor gives runtime error Pin
prasad_som5-Mar-07 0:11
prasad_som5-Mar-07 0:11 
QuestionDebugHeap --> memory overwritten[modified] Pin
baerten4-Mar-07 23:24
baerten4-Mar-07 23:24 
AnswerRe: DebugHeap --> memory overwritten[modified] Pin
Cedric Moonen5-Mar-07 0:43
Cedric Moonen5-Mar-07 0:43 
GeneralRe: DebugHeap --> memory overwritten[modified] Pin
baerten5-Mar-07 1:19
baerten5-Mar-07 1:19 
GeneralRe: DebugHeap --> memory overwritten[modified] Pin
Cedric Moonen5-Mar-07 3:09
Cedric Moonen5-Mar-07 3:09 
GeneralRe: DebugHeap --> memory overwritten[modified] Pin
prasad_som5-Mar-07 1:07
prasad_som5-Mar-07 1:07 
QuestionTo list files in MFC? Pin
Malini Nair4-Mar-07 23:21
Malini Nair4-Mar-07 23:21 
AnswerRe: To list files in MFC? Pin
Dmitry Khudorozhkov4-Mar-07 23:26
Dmitry Khudorozhkov4-Mar-07 23:26 
AnswerRe: To list files in MFC? Pin
Hamid_RT5-Mar-07 6:46
Hamid_RT5-Mar-07 6:46 
Questionstd::list in visual studio 2005? Pin
$uresh $hanmugam4-Mar-07 23:01
$uresh $hanmugam4-Mar-07 23:01 
AnswerRe: std::list in visual studio 2005? Pin
Stephen Hewitt6-Mar-07 13:03
Stephen Hewitt6-Mar-07 13:03 
QuestionVC++ - Display Pin
anu78734-Mar-07 22:32
anu78734-Mar-07 22:32 
QuestionRe: VC++ - Display Pin
prasad_som4-Mar-07 22:36
prasad_som4-Mar-07 22:36 
Questionresizing bitmaps in vc++ Pin
Susanta5784-Mar-07 22:13
Susanta5784-Mar-07 22:13 
AnswerRe: resizing bitmaps in vc++ Pin
Rajesh R Subramanian4-Mar-07 22:38
professionalRajesh R Subramanian4-Mar-07 22:38 
AnswerRe: resizing bitmaps in vc++ Pin
Hamid_RT5-Mar-07 6:57
Hamid_RT5-Mar-07 6:57 

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.