Click here to Skip to main content
15,927,593 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Will this generate a memory leak Pin
k50549-May-24 4:32
mvek50549-May-24 4:32 
GeneralRe: Will this generate a memory leak Pin
Calin Negru9-May-24 4:49
Calin Negru9-May-24 4:49 
GeneralRe: Will this generate a memory leak Pin
k50549-May-24 5:51
mvek50549-May-24 5:51 
AnswerRe: Can this be the cause of a memory leak Pin
Mircea Neacsu9-May-24 3:23
Mircea Neacsu9-May-24 3:23 
AnswerRe: Can this be the cause of a memory leak Pin
CPallini9-May-24 3:28
mveCPallini9-May-24 3:28 
GeneralRe: Can this be the cause of a memory leak Pin
Calin Negru9-May-24 4:53
Calin Negru9-May-24 4:53 
GeneralRe: Can this be the cause of a memory leak Pin
CPallini9-May-24 4:58
mveCPallini9-May-24 4:58 
AnswerRe: Can this be the cause of a memory leak Pin
charlieg23-May-24 1:04
charlieg23-May-24 1:04 
QuestionUSB power control Pin
etechX29-May-24 18:27
etechX29-May-24 18:27 
AnswerRe: USB power control Pin
jschell9-May-24 15:31
jschell9-May-24 15:31 
AnswerRe: USB power control Pin
RedDk10-May-24 8:24
RedDk10-May-24 8:24 
AnswerRe: USB power control Pin
charlieg20-May-24 4:44
charlieg20-May-24 4:44 
Questionforeach....recursively - assistance with C++ code wnated Pin
Salvatore Terress8-May-24 6:08
Salvatore Terress8-May-24 6:08 
AnswerRe: foreach....recursively - assistance with C++ code wnated Pin
k50548-May-24 7:03
mvek50548-May-24 7:03 
GeneralRe: foreach....recursively - assistance with C++ code wnated Pin
Salvatore Terress8-May-24 8:19
Salvatore Terress8-May-24 8:19 
GeneralRe: foreach....recursively - assistance with C++ code wnated Pin
k50548-May-24 8:57
mvek50548-May-24 8:57 
GeneralRe: foreach....recursively - assistance with C++ code wnated Pin
Salvatore Terress8-May-24 17:09
Salvatore Terress8-May-24 17:09 
GeneralRe: foreach....recursively - assistance with C++ code wnated Pin
Salvatore Terress10-May-24 13:23
Salvatore Terress10-May-24 13:23 
Questionvoluntarily REMOVED Which way is correct ? Pin
Salvatore Terress6-May-24 10:19
Salvatore Terress6-May-24 10:19 
AnswerRe: Which way is correct ? Pin
Richard MacCutchan7-May-24 0:29
mveRichard MacCutchan7-May-24 0:29 
AnswerRe: voluntarily REMOVED Which way is correct ? Pin
Richard MacCutchan9-May-24 5:59
mveRichard MacCutchan9-May-24 5:59 
QuestionPassing "parent" error Pin
Salvatore Terress4-May-24 6:51
Salvatore Terress4-May-24 6:51 
AnswerRe: Passing "parent" error Pin
Richard MacCutchan5-May-24 2:45
mveRichard MacCutchan5-May-24 2:45 
Questionchange exe icon not work with multiple stage icon file. Pin
Le@rner1-May-24 2:26
Le@rner1-May-24 2:26 
AnswerRe: change exe icon not work with multiple stage icon file. Pin
Victor Nijegorodov1-May-24 4:21
Victor Nijegorodov1-May-24 4:21 
Le@rner wrote:
buffer = (char *)malloc(buffersize);
...
delete buffer; // free memory

let's begin with the basics: Why do you use malloc to allocate buffer and then use delete to free the memory?

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.