Sysinternals Homepage
Forum Home Forum Home > Windows Discussions > Development
  New Posts New Posts RSS Feed - increase VS call stack dislpay limit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

increase VS call stack dislpay limit

 Post Reply Post Reply
Author
Message
vkmn View Drop Down
Newbie
Newbie


Joined: 21 April 2008
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote vkmn Quote  Post ReplyReply Direct Link To This Post Topic: increase VS call stack dislpay limit
    Posted: 11 June 2008 at 5:15am
VisualStudio seems to show no more than 1000 stack frames in "call stack" window. Is it possible to raise this 1,000 limit ?
 
Thanks
Viki
-----------
// Demo of a lot of stack frames, much more than 1,000
 
void foo(int x) {
    foo(x+1);
}
 
int main() {
    foo(1);
    return 0;
}
// --------------
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Status: Offline
Points: 17531
Post Options Post Options   Thanks (0) Thanks(0)   Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2008 at 5:35am
Hi vkmn,
 
It does not seem that there is a way.
 
If one has a look at the Debug.ListCallStack command, one is given the impression that one can specify the number of frames to show:
Quote Count:number [or] /C:number
Optional. Maximum number of call stacks to display. The default value is unlimited.
Yet, in trying this one quickly discovers that unlimited in this case must mean 1000, as specifying a value greater than that does not display more than 1000.  So, it would seem to be an in-built limitation.
 
WinDbg's k command does let you specify the frame count (and appears to honor it, at least to 2000.  (If you go too high, it tells you "Requested number of stack frames (0xhhhhh) is too large! The maximum number is 0xffff." So, it tells you the ceiling.)
 
But really, why would you need more than 1000 stack frames?


Edited by molotov - 11 June 2008 at 5:36am
Daily affirmation:
net helpmsg 4006
Back to Top
adrianh View Drop Down
Newbie
Newbie
Avatar

Joined: 11 June 2013
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrianh Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2016 at 3:55pm
That's like saying, "Who would need more than 640k?" Big smile

In this case, because if there is a crash and you are doing a postmortem on the dump file, if there was some stupid recursion, you won't be able to see what caused the issue.

I've just run into that issue right now in VS2015. Unhappy
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.06
Copyright ©2001-2016 Web Wiz Ltd.