Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: trying to make a rainbow out of a palette Pin
ns3-Nov-03 5:23
ns3-Nov-03 5:23 
QuestionHow to hide a tab from the Property Sheet Pin
ElizabethC24-Oct-03 10:18
ElizabethC24-Oct-03 10:18 
AnswerRe: How to hide a tab from the Property Sheet Pin
vcplusplus24-Oct-03 15:38
vcplusplus24-Oct-03 15:38 
GeneralArrays, heap, delete and crash! Pin
Rickard Andersson2024-Oct-03 10:03
Rickard Andersson2024-Oct-03 10:03 
GeneralRe: Arrays, heap, delete and crash! Pin
Alexander M.,24-Oct-03 10:08
Alexander M.,24-Oct-03 10:08 
GeneralRe: Arrays, heap, delete and crash! Pin
Rickard Andersson2024-Oct-03 10:17
Rickard Andersson2024-Oct-03 10:17 
GeneralRe: Arrays, heap, delete and crash! Pin
Gary R. Wheeler25-Oct-03 4:18
Gary R. Wheeler25-Oct-03 4:18 
GeneralRe: Arrays, heap, delete and crash! Pin
Kelly Herald24-Oct-03 10:52
Kelly Herald24-Oct-03 10:52 
The statement char** t = new char*[5]; allocates 5 elements (0 - 4). However, your for-loop is starting at 5. Your assigning data out of the bounds of your array and therefore overwriting (damaging) adjacent data on the heap.

Either change your for loop to i=4 or extend your array to 6 elements.



Kelly Herald
Software Developer
MPC
GeneralRe: Arrays, heap, delete and crash! Pin
Rickard Andersson2024-Oct-03 11:00
Rickard Andersson2024-Oct-03 11:00 
GeneralRe: Arrays, heap, delete and crash! Pin
igor196024-Oct-03 10:55
igor196024-Oct-03 10:55 
GeneralClass Wizard Problem Pin
ElizabethC24-Oct-03 9:20
ElizabethC24-Oct-03 9:20 
GeneralRe: Class Wizard Problem Pin
ElizabethC24-Oct-03 10:17
ElizabethC24-Oct-03 10:17 
GeneralYUV image format Pin
Raphael Kindt24-Oct-03 7:05
Raphael Kindt24-Oct-03 7:05 
GeneralRe: YUV image format Pin
David Crow24-Oct-03 8:29
David Crow24-Oct-03 8:29 
GeneralBUG: Registration of Attributed ATL Component fails with Web References Pin
arun140524-Oct-03 6:41
arun140524-Oct-03 6:41 
QuestionHow to overcome the 32K size limit in CFileDialog? Pin
Ted94424-Oct-03 5:34
Ted94424-Oct-03 5:34 
AnswerRe: How to overcome the 32K size limit in CFileDialog? Pin
David Crow24-Oct-03 6:19
David Crow24-Oct-03 6:19 
GeneralRe: How to overcome the 32K size limit in CFileDialog? Pin
Ted94424-Oct-03 6:33
Ted94424-Oct-03 6:33 
AnswerRe: How to overcome the 32K size limit in CFileDialog? Pin
valikac24-Oct-03 6:39
valikac24-Oct-03 6:39 
GeneralRe: How to overcome the 32K size limit in CFileDialog? Pin
Ted94424-Oct-03 7:23
Ted94424-Oct-03 7:23 
GeneralDirect x Pin
Member 64940724-Oct-03 5:26
Member 64940724-Oct-03 5:26 
GeneralRe: Direct x Pin
Alexander M.,24-Oct-03 10:10
Alexander M.,24-Oct-03 10:10 
GeneralRe: Direct x Pin
Atlantys24-Oct-03 11:01
Atlantys24-Oct-03 11:01 
GeneralRe: Direct x Pin
Alexander M.,24-Oct-03 11:39
Alexander M.,24-Oct-03 11:39 
GeneralCreateEvent Pin
includeh1024-Oct-03 4:53
includeh1024-Oct-03 4:53 

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.