473,473 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I know the size of system stack?

I wrote a program with recursion to sort some data. When the number of data
is too large, there will be a error, stack overflow.

How can I do? And how can I know the size of system stack?

Thank you.

--

Jul 22 '05 #1
3 2035

"fadics" <fa****@sohu.com> wrote in message
news:cd***********@mail.cn99.com...
I wrote a program with recursion to sort some data. When the number of data is too large, there will be a error, stack overflow.

How can I do? And how can I know the size of system stack?

Thank you.


There is no standard C++ way to find out the size of the system stack.

You should ask this question again on a group that discusses your compiler.
There might be a way to find out the size of the stack that is specific to
your compiler. This groups welcome message suggests some groups that might
be a better place for your question. http://www.slack.net/~shiva/welcome.txt

john
Jul 22 '05 #2

"fadics" <fa****@sohu.com> wrote in message
news:cd***********@mail.cn99.com...
I wrote a program with recursion to sort some data. When the number of data is too large, there will be a error, stack overflow.

How can I do? And how can I know the size of system stack?


Standard C++ does not address issues like system stack. Check with your
compiler documentation if they provide any way.
Jul 22 '05 #3

"fadics" <fa****@sohu.com> дÈëÓʼþ news:cd***********@mail.cn99.com...
I wrote a program with recursion to sort some data. When the number of data is too large, there will be a error, stack overflow.

How can I do? And how can I know the size of system stack?

Thank you.

--


Thank you.
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
3
by: Qoo | last post by:
Is there any tools like "stubedit" can let me enlarge the stack size under linux ? And I was quite wondering what's the default stack size of the program compiled with gcc without any parameter...
13
by: Ben R. Bolton | last post by:
The documentation indicates that the threads "default stack size" is 1MB. The work "default" implies that it can be changed. Is it possible to change the StackSize in .NET? If so how? Is it...
6
by: Dennis C. Drumm | last post by:
Is there a way to keep track of how much memory a stack object is consuming, considering it may contain a wide variety of objects that do not easily lend themselves to computing a size? Thanks,...
3
by: sternr | last post by:
Hey, I'm using in my application a System.Collections.Stack object. Is there a way to define a maximum size for the this stack object, That when the max size is reached, the oldest value is...
5
by: sunny | last post by:
Hi All Is there any way to determine stack and heap size, during runtime. i.e can we predict stack overflow. etc
9
by: Jensen Somers | last post by:
Hi, Is it possible to change the stack size of a DLL from within the source code? When using threads you can specify the size of the stack you want the thread to use, but since my application...
3
by: mark4asp | last post by:
Stack of limited size containing unique items? Hi guys, How would I implement a stack of limited size containing unique items? For example. Suppose my stack has . I add 2 to it and it is now...
6
by: shashi shekhar singh | last post by:
Respected Sir, I am facing problem when i try to deploy my website on iis 7.0 on test page. i have to display some .mht files on iframe in gridview and error looks like below, Server Error in...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.