Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Dynamic double dimension Pin
Arrun8-Nov-05 23:06
Arrun8-Nov-05 23:06 
AnswerRe: Dynamic double dimension Pin
kakan8-Nov-05 23:11
professionalkakan8-Nov-05 23:11 
QuestionRe: Dynamic double dimension Pin
Arrun8-Nov-05 23:40
Arrun8-Nov-05 23:40 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 0:07
professionalkakan9-Nov-05 0:07 
QuestionRe: Dynamic double dimension Pin
Arrun9-Nov-05 0:27
Arrun9-Nov-05 0:27 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 0:32
professionalkakan9-Nov-05 0:32 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 2:13
professionalkakan9-Nov-05 2:13 
AnswerRe: Dynamic double dimension Pin
David Crow9-Nov-05 3:22
David Crow9-Nov-05 3:22 
Arrun wrote:
ImagePro = new double*[width];
for(int i = 0; i < height; i++)


If you allocate room for width double pointers, it only makes sense that the for loop execute only that many times. If height happens to be larger than width, an error should be expected. See here for an example.

Arrun wrote:
for(int i = 0; i < height; i++)
{
delete ImagePro[i];
}
delete ImagePro;


Change to:

for(int i = 0; i < height; i++)
    delete [] ImagePro[i];
 
delete [] ImagePro;



"Take only what you need and leave the land as you found it." - Native American Proverb


Question(Urgent) Problem in inserting line numbers in CRichEditView application Pin
sandakith8-Nov-05 21:41
sandakith8-Nov-05 21:41 
AnswerRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
James R. Twine9-Nov-05 4:50
James R. Twine9-Nov-05 4:50 
GeneralRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
sandakith9-Nov-05 16:12
sandakith9-Nov-05 16:12 
GeneralRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
James R. Twine9-Nov-05 16:43
James R. Twine9-Nov-05 16:43 
QuestionProtocol and web-site Pin
includeh108-Nov-05 19:32
includeh108-Nov-05 19:32 
AnswerRe: Protocol and web-site Pin
ThatsAlok8-Nov-05 20:14
ThatsAlok8-Nov-05 20:14 
AnswerRe: Protocol and web-site Pin
S Douglas8-Nov-05 21:41
professionalS Douglas8-Nov-05 21:41 
QuestionHttp connection Pin
includeh108-Nov-05 19:19
includeh108-Nov-05 19:19 
AnswerRe: Http connection Pin
ThatsAlok8-Nov-05 19:55
ThatsAlok8-Nov-05 19:55 
QuestionHiding Toolbars, Menubar, control bar and status bar Pin
romuzu8-Nov-05 17:13
romuzu8-Nov-05 17:13 
AnswerRe: Hiding Toolbars, Menubar, control bar and status bar Pin
douglasjordan8-Nov-05 17:26
douglasjordan8-Nov-05 17:26 
QuestionShift-jis Pin
samkook8-Nov-05 12:04
samkook8-Nov-05 12:04 
Question(Console C++)Resizing mallocation? Pin
Mariano Lopez-Gappa8-Nov-05 10:44
Mariano Lopez-Gappa8-Nov-05 10:44 
AnswerRe: (Console C++)Resizing mallocation? Pin
Ravi Bhavnani8-Nov-05 11:06
professionalRavi Bhavnani8-Nov-05 11:06 
AnswerRe: (Console C++)Resizing mallocation? Pin
Tim Smith8-Nov-05 11:25
Tim Smith8-Nov-05 11:25 
AnswerRe: (Console C++)Resizing mallocation? Pin
douglasjordan8-Nov-05 12:57
douglasjordan8-Nov-05 12:57 
AnswerRe: (Console C++)Resizing mallocation? Pin
Mariano Lopez-Gappa8-Nov-05 13:17
Mariano Lopez-Gappa8-Nov-05 13:17 

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.