Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting PCM to GSM06.10 with ACM Pin
Eytukan12-Dec-08 8:10
Eytukan12-Dec-08 8:10 
QuestionUDP server with multiclients Pin
sunny_vc12-Dec-08 2:20
sunny_vc12-Dec-08 2:20 
AnswerRe: UDP server with multiclients Pin
Eytukan12-Dec-08 7:35
Eytukan12-Dec-08 7:35 
Questiondeleting array of objects of a class Pin
Andy Rama12-Dec-08 1:35
Andy Rama12-Dec-08 1:35 
AnswerRe: deleting array of objects of a class Pin
Sarath C12-Dec-08 2:41
Sarath C12-Dec-08 2:41 
AnswerRe: deleting array of objects of a class Pin
Andy Rama17-Dec-08 21:30
Andy Rama17-Dec-08 21:30 
QuestionRe: deleting array of objects of a class Pin
Maximilien12-Dec-08 3:08
Maximilien12-Dec-08 3:08 
AnswerRe: deleting array of objects of a class Pin
Alan Balkany12-Dec-08 4:00
Alan Balkany12-Dec-08 4:00 
It looks like you have many arrays of objects, and a destructor is called for EACH array element. It may be possible to delete the whole array with one statement, if your destructor is just freeing memory (as opposed to executing cleanup code).

For example:

D* dArray = (D *) malloc (numberOfDObjects * sizeof (D));

...

delete [] (char *) dArray;


This invokes delete once, rather than numberOfDObjects times. You may be able to use similar logic for arrays of arrays of objects.
GeneralRe: deleting array of objects of a class Pin
Maximilien12-Dec-08 4:44
Maximilien12-Dec-08 4:44 
GeneralRe: deleting array of objects of a class Pin
Alan Balkany12-Dec-08 7:36
Alan Balkany12-Dec-08 7:36 
AnswerRe: deleting array of objects of a class Pin
Eytukan12-Dec-08 7:19
Eytukan12-Dec-08 7:19 
Questionusing SAFEARRAY Pin
KASR112-Dec-08 1:29
KASR112-Dec-08 1:29 
AnswerRe: using SAFEARRAY Pin
Jijo.Raj12-Dec-08 1:44
Jijo.Raj12-Dec-08 1:44 
QuestionRe: using SAFEARRAY Pin
David Crow12-Dec-08 3:16
David Crow12-Dec-08 3:16 
AnswerRe: using SAFEARRAY Pin
KASR112-Dec-08 3:17
KASR112-Dec-08 3:17 
QuestionRe: using SAFEARRAY Pin
David Crow12-Dec-08 3:19
David Crow12-Dec-08 3:19 
AnswerRe: using SAFEARRAY Pin
KASR112-Dec-08 3:23
KASR112-Dec-08 3:23 
AnswerRe: using SAFEARRAY Pin
KASR112-Dec-08 3:24
KASR112-Dec-08 3:24 
QuestionSize of memory pointed to by void * pointer. Pin
VC++Maniac12-Dec-08 1:00
VC++Maniac12-Dec-08 1:00 
AnswerRe: Size of memory pointed to by void * pointer. Pin
Naveen12-Dec-08 1:16
Naveen12-Dec-08 1:16 
AnswerRe: Size of memory pointed to by void * pointer. Pin
Jijo.Raj12-Dec-08 1:18
Jijo.Raj12-Dec-08 1:18 
GeneralRe: Size of memory pointed to by void * pointer. Pin
VC++Maniac12-Dec-08 1:38
VC++Maniac12-Dec-08 1:38 
GeneralRe: Size of memory pointed to by void * pointer. Pin
Jijo.Raj12-Dec-08 2:08
Jijo.Raj12-Dec-08 2:08 
GeneralRe: Size of memory pointed to by void * pointer. Pin
VC++Maniac12-Dec-08 2:14
VC++Maniac12-Dec-08 2:14 
QuestionHow to write BITMAP structure to xml file? Pin
VC++Maniac12-Dec-08 0:57
VC++Maniac12-Dec-08 0:57 

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.