Click here to Skip to main content
15,916,412 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Virtual memory Problem Pin
jhwurmbach1-Feb-07 21:36
jhwurmbach1-Feb-07 21:36 
GeneralRe: Virtual memory Problem Pin
Waldermort1-Feb-07 21:45
Waldermort1-Feb-07 21:45 
GeneralRe: Virtual memory Problem Pin
jhwurmbach1-Feb-07 21:48
jhwurmbach1-Feb-07 21:48 
GeneralRe: Virtual memory Problem Pin
voorugonda prashanth1-Feb-07 22:09
voorugonda prashanth1-Feb-07 22:09 
GeneralRe: Virtual memory Problem [modified] Pin
jhwurmbach1-Feb-07 22:43
jhwurmbach1-Feb-07 22:43 
GeneralRe: Virtual memory Problem Pin
Roger Stoltz1-Feb-07 22:07
Roger Stoltz1-Feb-07 22:07 
GeneralRe: Virtual memory Problem Pin
Waldermort2-Feb-07 4:17
Waldermort2-Feb-07 4:17 
GeneralRe: Virtual memory Problem Pin
Roger Stoltz2-Feb-07 4:57
Roger Stoltz2-Feb-07 4:57 
WalderMort wrote:
but there are instances where using malloc has proved to be better


Sorry, WalderMort, I don't know what you're referring to by this statement.
If you follow the link I provided in my previous post and scroll up a few lines, you will find this:
Stroustrup wrote:
There is no performance difference between malloc() and new when you take initialization into account.



In my humble opinion, if you find yourself in a situation where you think you benefit from the use of ::malloc() in C++, you're probably not using the language in the way Stroustrup intended.
This is also how I interpret his statement a little bit further down:
Stroustrup wrote:
If you feel the need for realloc() - and many do - then consider using a standard library vector.



WalderMort wrote:
needing to allocatate an instance without calling the c'tor


I cannot possibly think that I will find myself in a situation where I actually want to use uninitalized data, the compiler would also complain about it. If you want to create a copy of an existing object, you don't use ::memcpy()OMG | :OMG: but you would rather use the copy constructor or the assignment operator.

But that may be just me...:-> ...but I think not...


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

AnswerRe: Virtual memory Problem Pin
ThatsAlok1-Feb-07 21:41
ThatsAlok1-Feb-07 21:41 
QuestionRTC problem Pin
minihotto1-Feb-07 19:52
minihotto1-Feb-07 19:52 
QuestionCRecordset Pin
Bravoone_20061-Feb-07 19:41
Bravoone_20061-Feb-07 19:41 
QuestionRe: CR Pin
prasad_som1-Feb-07 19:49
prasad_som1-Feb-07 19:49 
AnswerRe: CRecordset Pin
David Crow2-Feb-07 3:06
David Crow2-Feb-07 3:06 
AnswerRe: CRecordset Pin
Mark Salsbery2-Feb-07 7:21
Mark Salsbery2-Feb-07 7:21 
QuestionConvertin 24 bit Bitmap file to 8 bit Bitmap Pin
Vijjuuu.1-Feb-07 19:24
Vijjuuu.1-Feb-07 19:24 
AnswerRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Waldermort1-Feb-07 19:31
Waldermort1-Feb-07 19:31 
GeneralRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Vijjuuu.1-Feb-07 19:43
Vijjuuu.1-Feb-07 19:43 
GeneralRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Waldermort1-Feb-07 20:00
Waldermort1-Feb-07 20:00 
GeneralRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Vijjuuu.1-Feb-07 21:50
Vijjuuu.1-Feb-07 21:50 
GeneralRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Waldermort2-Feb-07 2:51
Waldermort2-Feb-07 2:51 
AnswerRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Christian Graus1-Feb-07 19:41
protectorChristian Graus1-Feb-07 19:41 
GeneralRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Vijjuuu.1-Feb-07 19:46
Vijjuuu.1-Feb-07 19:46 
GeneralRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Christian Graus1-Feb-07 20:26
protectorChristian Graus1-Feb-07 20:26 
AnswerRe: Convertin 24 bit Bitmap file to 8 bit Bitmap Pin
Mark Salsbery2-Feb-07 7:29
Mark Salsbery2-Feb-07 7:29 
QuestionValue of dmPaperSize in DEVMODE structure for custom papersize Pin
vcpgmr1-Feb-07 19:18
vcpgmr1-Feb-07 19:18 

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.