|
-
November 19th, 2001, 11:40 PM
#1
Calculate stack memory required for a c++ function
Hi,
I want to know how much stack memory is required for executing a normal c++ function under windows NT. Is there any function or win32 api which can be used to find the total amount of stack memory required by c++ class(function).
thanks and regards,
manju
-
November 20th, 2001, 02:17 AM
#2
Re: Calculate stack memory required for a c++ function
Not for a particular class/function. There may be one to say how much your program is using total at that point in time. But the whole purpose of a stack is that total memory space used by it varies as the program runs. You'd have to measure it at various points, and record the largest.
And why are you concerned? Memory under Win32 is virtual. THe stack will expand as it is needed. If you are running out, it most likely indicates a bug in your program that's just sucking up all available memory.
Truth,
James
http://www.NJTheater.com
http://www.NovelTheory.com
I don't do it for the points (OK, maybe I do), but rating a post is a good way for me to know if I helped.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|