Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: array of char* Pin
bleedingfingers3-Jan-11 0:56
bleedingfingers3-Jan-11 0:56 
AnswerRe: array of char* Pin
CPallini3-Jan-11 0:50
mveCPallini3-Jan-11 0:50 
GeneralRe: array of char* Pin
T21023-Jan-11 1:04
T21023-Jan-11 1:04 
GeneralRe: array of char* Pin
Alan Balkany5-Jan-11 4:15
Alan Balkany5-Jan-11 4:15 
GeneralRe: array of char* Pin
CPallini5-Jan-11 7:24
mveCPallini5-Jan-11 7:24 
GeneralRe: array of char* Pin
Alan Balkany5-Jan-11 8:38
Alan Balkany5-Jan-11 8:38 
QuestionRe: array of char* Pin
David Crow3-Jan-11 3:12
David Crow3-Jan-11 3:12 
AnswerRe: array of char* Pin
Maximilien3-Jan-11 4:32
Maximilien3-Jan-11 4:32 
AnswerRe: array of char* Pin
Richard MacCutchan3-Jan-11 4:48
mveRichard MacCutchan3-Jan-11 4:48 
GeneralRe: array of char* Pin
CPallini3-Jan-11 9:39
mveCPallini3-Jan-11 9:39 
JokeRe: array of char* Pin
«_Superman_»3-Jan-11 6:07
professional«_Superman_»3-Jan-11 6:07 
JokeRe: array of char* Pin
CPallini3-Jan-11 10:01
mveCPallini3-Jan-11 10:01 
JokeRe: array of char* Pin
bleedingfingers3-Jan-11 20:45
bleedingfingers3-Jan-11 20:45 
JokeRe: array of char* Pin
«_Superman_»4-Jan-11 3:21
professional«_Superman_»4-Jan-11 3:21 
Questionget a value from dialog box to dialog box? Pin
mathivanaan2-Jan-11 23:16
mathivanaan2-Jan-11 23:16 
AnswerRe: get a value from dialog box to dialog box? Pin
Richard MacCutchan2-Jan-11 23:42
mveRichard MacCutchan2-Jan-11 23:42 
AnswerRe: get a value from dialog box to dialog box? Pin
Nuri Ismail2-Jan-11 23:47
Nuri Ismail2-Jan-11 23:47 
AnswerRe: get a value from dialog box to dialog box? Pin
CPallini3-Jan-11 0:29
mveCPallini3-Jan-11 0:29 
QuestionRe: get a value from dialog box to dialog box? Pin
David Crow3-Jan-11 3:17
David Crow3-Jan-11 3:17 
QuestionShadow around the dialog Pin
john56322-Jan-11 21:16
john56322-Jan-11 21:16 
AnswerRe: Shadow around the dialog Pin
Nuri Ismail2-Jan-11 22:40
Nuri Ismail2-Jan-11 22:40 
AnswerVC++ Pin
Gokulnath0072-Jan-11 19:50
Gokulnath0072-Jan-11 19:50 
GeneralRe: VC++ Pin
ShilpiP2-Jan-11 20:05
ShilpiP2-Jan-11 20:05 

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.