|
Does some language or platform not have a fixed size of stack and therefore not easy to overflow? I remember using C on UNIX, the stack was difficult to overflow while back in the days of Win 3.1, the stack was very easy to overflow.
Started by Jian Lin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The stack of a lisp interpreter is limited recursive function would have an infinite stack
If by "stack" you mean any old stack, most languages do-- Java has a stack....
This is a question of the practical vs the theoretical .
|
|
On a Vista x64 PC with a wired connection to a Server 2003 Domain environment, a DHCP-assigned IP, and an empty hosts file, intermittently any attempt to ping, telnet or otherwise resolve a particular machine name (or FQDN) (and not always the same machine...
Started by Jason Stangroome on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
There are issues with some name resolution servers because of the IPv6 stack on Vista so you could see if ping -4 works when ping does not (the Vista IP stack attempts name resolution using IPv6 first.
|
|
I have a bunch of generic interfaces and classes
public interface IElement { // omited } class Element implements IElement { // omited } public interface IElementList<E extends IElement> extends Iterable { public Iterator<E> iterator(); } ...
Started by lbownik on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I made this change, and it compiled fine....
This makes the compiler think that you're iterating over Object s .
Otherwise, the interface specifies Iterator iterator() , not Iterator<E> iterator() .
IElementList needs to implement Iterable<E>.
|
Ask your Facebook Friends
|
Is the kernel stack a different structure to the user-mode stack that is used by applications we (programmers) write?
Can you explain the differences?
Started by Tony on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The reason why there are two different stack per thread is because in user....
A thread doesn't have to use the stack by the wayConceptually, both are the same data structure: a stack.
If the threads are in the same process).
|
|
Many C/C++/Fortran and other programmers would have come across "stack overflow" errors. My question is, Is there a tool, a program or a simple code snippet, that allow us to monitor or check the size of the stack while the program is running? This may...
Started by c.Chee on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
AA) and monitor used, not the current....
One easy trick is to fill the stack with a known byte value (e.g.
This will give you the maximum stack size will be platform dependent.
The position of the first byte that doesn't have this value.
|
|
Glocks are fat and chunky, even the G26/27 subcompact series. Every major gun maker has come out with small 9/40 pistols geared towards the ccw crowd
Everybody, that is, except Glock. They don't make a mid/small size single stack gun because...?
Started by sharpshooter on
, 24 posts
by 20 people.
Answer Snippets (Read the full thread at glocktalk):
I like it.
Actually the 36 is quite slim.
Their single stack 45 is still quite chunky.
Also, they do make a single stack .45acp.
|
|
I have a class that calls
traceback.extract_stack()
in its __init__() , but whenever I do that, the value of traceback.extract_stack() is [] .
What are some reasons that this could be the case? Is there another way to get a traceback that will be more...
Started by Josh Gibson on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Please post your code showing that it doesn't work_stack() [('<stdin>', 1, '<....
Following shows traceback.extract_stack() working when called from a class's __init__ method.
Set to zero, though that seems like a longshot...
|
|
I've been trying to find an answer to this question for a few hours now on the web and on this site, and I'm not quite there.
I understand that .NET allocates 1MB to apps, and that it's best to avoid stack overflow by recoding instead of forcing stack...
Started by NateD on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The classic technique to avoid deep recursive stack dives is to simply avoid recursion....
A while back I explored this problem on the heap instead of on the stack.
It doesn't need to be a parameter, carried on each stack frame.
|
|
What on earth have you done rapmusic.com
Started by Wird of Pley on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at rapmusic):
If you....
|
|
I have tried to simplify and annotate the code which is giving me a headache below. It demonstrates my problem. Simply put, I have two separate stacks and I am trying to pop from one stack. For some reason, when you pop one of the stacks, it actually ...
Started by ezwi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Stack is a reference type, meaning that assigning _stackCopy to _stackMaster doesn't copy the stack the stack, it just copies the reference to the actual object:
_stackCopy = _stackMaster
In .NET, you have Pop, you are only....
|