Image swap generates stack overflow error at line 0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a page index4.htm that has a DWT and CSS attached. On the index4.htm
page I have an image that I am swapping out with image 2. When I save the
page and preview it in the browser I get the stack overflow error at line 0.
Any thoughts?
Thanks
 
Stack overflows are almost always caused by infinite loops. An infinite loop
is when a looping sequence of statements doesn't terminate at any point. A
simple example:

for (i = 0; i < 20; i++)
{
i = 5;
}

Since i never gets to 20, the loop never quits.

However, some infinite loops are not so simple:

function add (a, b)
{
return Math.Abs(subtract(0 - a, b));
}

function subtract(x, y)
{
return add(x + (0 - y));
}

var result = add(1, 1);

The function add() calls the function subtract(), which calls the function
add() which... infinitely.

So, you have to follow the sequence through one or more functions sometimes
to find it.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
Back
Top