Click here to Skip to main content
15,903,784 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCHAR issue Pin
goldenrose94-Jan-11 18:57
goldenrose94-Jan-11 18:57 
QuestionMake Cview Variable... Pin
JInsod3-Jan-11 17:59
JInsod3-Jan-11 17:59 
AnswerRe: Make Cview Variable... Pin
Roger Broomfield4-Jan-11 0:41
Roger Broomfield4-Jan-11 0:41 
QuestionCreateFile Pin
john56323-Jan-11 3:28
john56323-Jan-11 3:28 
AnswerRe: CreateFile Pin
T21023-Jan-11 3:31
T21023-Jan-11 3:31 
QuestionRe: CreateFile Pin
David Crow3-Jan-11 3:44
David Crow3-Jan-11 3:44 
AnswerRe: CreateFile Pin
_Erik_3-Jan-11 4:11
_Erik_3-Jan-11 4:11 
AnswerRe: CreateFile Pin
«_Superman_»3-Jan-11 5:55
professional«_Superman_»3-Jan-11 5:55 
AnswerRe: CreateFile Pin
Emilio Garavaglia3-Jan-11 9:12
Emilio Garavaglia3-Jan-11 9:12 
AnswerRe: CreateFile Pin
Rajesh R Subramanian3-Jan-11 22:20
professionalRajesh R Subramanian3-Jan-11 22:20 
GeneralRe: CreateFile Pin
Emilio Garavaglia3-Jan-11 23:52
Emilio Garavaglia3-Jan-11 23:52 
GeneralRe: CreateFile Pin
Rajesh R Subramanian3-Jan-11 23:59
professionalRajesh R Subramanian3-Jan-11 23:59 
QuestionSize of an empty class Pin
pix_programmer3-Jan-11 2:31
pix_programmer3-Jan-11 2:31 
AnswerRe: Size of an empty class PinPopular
markkuk3-Jan-11 2:37
markkuk3-Jan-11 2:37 
GeneralRe: Size of an empty class Pin
jk chan4-Jan-11 1:52
jk chan4-Jan-11 1:52 
AnswerRe: Size of an empty class Pin
T21023-Jan-11 2:43
T21023-Jan-11 2:43 
AnswerRe: Size of an empty class PinPopular
«_Superman_»3-Jan-11 6:03
professional«_Superman_»3-Jan-11 6:03 
GeneralRe: Size of an empty class Pin
Emilio Garavaglia3-Jan-11 9:16
Emilio Garavaglia3-Jan-11 9:16 
QuestionRe: Size of an empty class Pin
CPallini3-Jan-11 9:28
mveCPallini3-Jan-11 9:28 
AnswerRe: Size of an empty class Pin
Emilio Garavaglia3-Jan-11 9:40
Emilio Garavaglia3-Jan-11 9:40 
GeneralRe: Size of an empty class Pin
CPallini3-Jan-11 9:45
mveCPallini3-Jan-11 9:45 
AnswerRe: Size of an empty class Pin
Shivanand Gupta3-Jan-11 18:21
Shivanand Gupta3-Jan-11 18:21 
Questionarray of char* Pin
piul3-Jan-11 0:14
piul3-Jan-11 0:14 
AnswerRe: array of char* Pin
bleedingfingers3-Jan-11 0:30
bleedingfingers3-Jan-11 0:30 
First up, the "customer" has no business wrt such low level programming details. I smell something else here.

Anyway, to the point, the allocation itself is flawed. You are allocating just one character and copying several characters into it. A lot of corrupted memory. The delete will cry.

The proper way to delete is to loop through the array and delete every allocated sub array.
...byte till it megahertz...

my donation to web rubbish

GeneralRe: array of char* Pin
piul3-Jan-11 0:40
piul3-Jan-11 0:40 

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.