Web service creates stack overflow

Posted by mouthpiec on Stack Overflow See other posts from Stack Overflow or by mouthpiec
Published on 2010-06-13T08:45:43Z Indexed on 2010/06/13 17:22 UTC
Read the original article Hit count: 477

Filed under:
|
|
|

I have an application that when executed as a windows application works fine, but when converted to a web service, in some instances (which were tested successfully) by the windows app) creates a stack overflow.

Do you have an idea of what can cause this? (Note that it works fine when the web service is placed on the localhost).

Could it be that the stack size of a Web Service is smaller than that of a Window Application?

UPDATE

The below is the code in which I am getting a stack overflow error

private bool CheckifPixelsNeighbour(Pixel c1, Pixel c2, int DistanceAllowed)
{
    bool Neighbour = false;

    if ((Math.Abs(c1.X - c2.X) <= DistanceAllowed) &&
        Math.Abs(c1.Y - c2.Y) <= DistanceAllowed)
    {
        Neighbour = true;
    }
    return Neighbour;
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET