Click here to Skip to main content
15,906,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeThank you, kindly, Harold, Stuart, Sarath - your answers are greatly appreciated! [modified] Pin
Mike the Red7-Jul-09 3:31
Mike the Red7-Jul-09 3:31 
GeneralRe: Thank you, kindly, Harlod, Stuart, Sarath - your answers are greatly appreciated! Pin
«_Superman_»7-Jul-09 3:44
professional«_Superman_»7-Jul-09 3:44 
GeneralRe: Thank you, kindly, Harlod, Stuart, Sarath - your answers are greatly appreciated! Pin
harold aptroot7-Jul-09 15:27
harold aptroot7-Jul-09 15:27 
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
Single Step Debugger7-Jul-09 4:20
Single Step Debugger7-Jul-09 4:20 
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
molesworth7-Jul-09 4:29
molesworth7-Jul-09 4:29 
QuestionActually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Mike the Red7-Jul-09 5:28
Mike the Red7-Jul-09 5:28 
AnswerRe: Actually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Kevin McFarlane7-Jul-09 6:21
Kevin McFarlane7-Jul-09 6:21 
AnswerRe: Actually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Rajesh R Subramanian7-Jul-09 7:23
professionalRajesh R Subramanian7-Jul-09 7:23 
I do not pretend to be an ISAPI expert, but you're trying to get into some kind of hand-crafted memory management. This can be more dangerous than you imagine. Try using some of those existing and well tested libraries like stl, mfc, etc.,

Agreed that utilising the stack as much as possible is a good thing, but I don't think that it is going to make *that much* of a difference on any normal application. If you try pushing the stack to its limits, there's also a danger of stack overflow.

I'll humbly suggest you to drop this idea of 'manual' memory management adventure. For all the pain that it could cause, it isn't worth. Frequent allocation and deallocation of the heap can fragment it and there are memory damage possibilities, memory leaks, etc., I won't ever choose something of this sort, unless I'm writing a memory manager or something like that myself.

Pick an existing library and it would use the heap in the best possible way for you.


It is a crappy thing, but it's life -^ Carlo Pallini

AnswerRe: Actually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Stuart Dootson7-Jul-09 8:36
professionalStuart Dootson7-Jul-09 8:36 
QuestionHow to Insert Data In Excel Pin
Anubhava Dimri7-Jul-09 2:45
Anubhava Dimri7-Jul-09 2:45 
AnswerRe: How to Insert Data In Excel Pin
Michael Schubert7-Jul-09 3:01
Michael Schubert7-Jul-09 3:01 
GeneralRe: How to Insert Data In Excel Pin
Anubhava Dimri7-Jul-09 18:15
Anubhava Dimri7-Jul-09 18:15 
GeneralRe: How to Insert Data In Excel Pin
David Crow8-Jul-09 3:02
David Crow8-Jul-09 3:02 
GeneralRe: How to Insert Data In Excel Pin
Anubhava Dimri8-Jul-09 18:08
Anubhava Dimri8-Jul-09 18:08 
QuestionRe: How to Insert Data In Excel Pin
David Crow9-Jul-09 1:46
David Crow9-Jul-09 1:46 
AnswerRe: How to Insert Data In Excel Pin
Anubhava Dimri9-Jul-09 2:31
Anubhava Dimri9-Jul-09 2:31 
QuestionRe: How to Insert Data In Excel Pin
David Crow9-Jul-09 2:37
David Crow9-Jul-09 2:37 
AnswerRe: How to Insert Data In Excel Pin
Anubhava Dimri9-Jul-09 18:04
Anubhava Dimri9-Jul-09 18:04 
GeneralRe: How to Insert Data In Excel Pin
David Crow10-Jul-09 3:04
David Crow10-Jul-09 3:04 
GeneralRe: How to Insert Data In Excel Pin
Anubhava Dimri10-Jul-09 18:16
Anubhava Dimri10-Jul-09 18:16 
QuestionWindows Workflow Foundation Pin
RS.Ratheesh7-Jul-09 2:41
RS.Ratheesh7-Jul-09 2:41 
AnswerRe: Windows Workflow Foundation Pin
Kevin McFarlane7-Jul-09 6:10
Kevin McFarlane7-Jul-09 6:10 
GeneralRe: Windows Workflow Foundation Pin
RS.Ratheesh7-Jul-09 20:19
RS.Ratheesh7-Jul-09 20:19 
QuestionHow to get international date format in lotus notes Pin
kirankatta7-Jul-09 2:37
kirankatta7-Jul-09 2:37 
QuestionRe: How to get international date format in lotus notes Pin
David Crow7-Jul-09 3:07
David Crow7-Jul-09 3:07 

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.