473,322 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

stack size

I have a recursive program and a typical stackoverflow exception, i need
modify the stack size , how can i do it?

Nov 15 '05 #1
5 3666
Maybe there is a mistake in your code that leads to this exception?
"jordi" <no@noboby.net> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
I have a recursive program and a typical stackoverflow exception, i need
modify the stack size , how can i do it?

Nov 15 '05 #2
Hi,

isn't there another, less recursive and memory eating, algorithm for your
problem?
Are you sure that increasing the stack will solve everything and always ?
Maybe not.
Btw, what does it do ? Some recursive algorithms can be made non-recursive,
but not all of course.
As a workaround (and possibly as a solution), try moving some or all of the
local variabels into an object.

Greetings,

Bram.
"jordi" <no@noboby.net> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
I have a recursive program and a typical stackoverflow exception, i need
modify the stack size , how can i do it?

Nov 15 '05 #3
Yes, i used another non-recursive (or mixed) algorithm to solve my problem,
but i only want know if i can modify the stack size.

can i do it? how?
"Bram" <bv*****@nospam.skynet.be> escribió en el mensaje
news:40**********************@news.skynet.be...
Hi,

isn't there another, less recursive and memory eating, algorithm for your
problem?
Are you sure that increasing the stack will solve everything and always ?
Maybe not.
Btw, what does it do ? Some recursive algorithms can be made non-recursive, but not all of course.
As a workaround (and possibly as a solution), try moving some or all of the local variabels into an object.

Greetings,

Bram.
"jordi" <no@noboby.net> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
I have a recursive program and a typical stackoverflow exception, i need
modify the stack size , how can i do it?


Nov 15 '05 #4
Run editbin.exe /stack:<newsize> filename.exe

Willy.

"jordi" <no@noboby.net> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
I have a recursive program and a typical stackoverflow exception, i need
modify the stack size , how can i do it?

Nov 15 '05 #5
thanks.

"Willy Denoyette [MVP]" <wi*************@pandora.be> escribió en el mensaje
news:OV**************@TK2MSFTNGP11.phx.gbl...
Run editbin.exe /stack:<newsize> filename.exe

Willy.

"jordi" <no@noboby.net> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
I have a recursive program and a typical stackoverflow exception, i need
modify the stack size , how can i do it?


Nov 15 '05 #6

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

Similar topics

14
by: Kevin Grigorenko | last post by:
Hello, I couldn't find an obvious answer to this in the FAQ. My basic question, is: Is there any difference in allocating on the heap versus the stack? If heap or stack implementation is not...
10
by: Shuo Xiang | last post by:
Greetings: I know that variables declared on a stack definitely does not reside in heap space so there is only a very limited amount of stuff that you can store in the stack of a function. But...
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...
2
by: Peter Oliphant | last post by:
Hey, is there a limit to the stack size? I realize of course there must be, but how is this determined/set? Or does it self adjust up to, say, available memory (and possibly virtual memory from...
9
by: Ajay | last post by:
Hi all, Can I know what is the stack space and heap space allocated by the compiler.Can i increase it or decrease it.if yes,pleae tell me theway to do it.Thanks in advance. Cheers, Ajay
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
1
by: alfie27 | last post by:
I currently have a working program that is a stack that stores integers. Now i have to convert it to store strings instead of integers. I have been working on this for hours and just keep getting...
7
by: amit.atray | last post by:
Environement : Sun OS + gnu tools + sun studio (dbx etc) having some Old C-Code (ansi + KR Style) and code inspection shows some big size variable (auto) allocated (on stack) say for ex. char...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.