Click here to Skip to main content
15,896,912 members
Home / Discussions / C#
   

C#

 
Generalcontrolling controls with handles Pin
V.21-Apr-08 2:36
professionalV.21-Apr-08 2:36 
GeneralRe: controlling controls with handles Pin
carbon_golem21-Apr-08 7:01
carbon_golem21-Apr-08 7:01 
GeneralRe: controlling controls with handles Pin
V.22-Apr-08 1:48
professionalV.22-Apr-08 1:48 
GeneralRe: controlling controls with handles Pin
carbon_golem22-Apr-08 2:37
carbon_golem22-Apr-08 2:37 
GeneralRe: controlling controls with handles Pin
V.22-Apr-08 4:53
professionalV.22-Apr-08 4:53 
GeneralCharacter Sets Pin
baerten21-Apr-08 2:27
baerten21-Apr-08 2:27 
GeneralRe: Character Sets Pin
Vikram A Punathambekar21-Apr-08 2:59
Vikram A Punathambekar21-Apr-08 2:59 
QuestionSystem.StackOverflowException was unhandled Pin
cuongmits21-Apr-08 2:11
cuongmits21-Apr-08 2:11 
Hi master,

I got this error message when initialize matrix with so large number MxN

An unhandled exception of type 'System.StackOverflowException' occurred in [project name].exe

I dont know how to pass this error, anyone can help me please? This is my code:

<br />
class image<br />
{<br />
<br />
//blah... (init for matrix Img_In_Process[,] and its size MxN<br />
<br />
public void zoning()<br />
{<br />
            int Max = 0;<br />
            for (int i = 1; i < M - 1; i++)<br />
                for (int j = 1; j < N - 1; j++)<br />
                    if (Img_In_Process[i, j] == -1)<br />
                    {<br />
                        Max++;<br />
                        Point_Zone(i, j);<br />
                    }<br />
}<br />
<br />
private void Point_Zone(int i, int j)<br />
        {<br />
            Img_In_Process[i, j] = Max;<br />
            if ((i - 1 >= 0) && (Img_In_Process[i - 1, j] == -1)) Point_Zone(i - 1, j);<br />
            if ((j - 1 >= 0) && (Img_In_Process[i, j - 1] == -1)) Point_Zone(i, j - 1);<br />
            if ((i + 1 < M) && (Img_In_Process[i + 1, j] == -1)) Point_Zone(i + 1, j);<br />
            if ((j + 1 < N) && (Img_In_Process[i, j + 1] == -1)) Point_Zone(i, j + 1);<br />
        }<br />
}

GeneralRe: System.StackOverflowException was unhandled Pin
Vikram A Punathambekar21-Apr-08 3:00
Vikram A Punathambekar21-Apr-08 3:00 
GeneralRe: System.StackOverflowException was unhandled Pin
leppie21-Apr-08 4:08
leppie21-Apr-08 4:08 
QuestionRe: System.StackOverflowException was unhandled Pin
cuongmits21-Apr-08 7:36
cuongmits21-Apr-08 7:36 
GeneralRe: System.StackOverflowException was unhandled Pin
Yusuf21-Apr-08 8:21
Yusuf21-Apr-08 8:21 
QuestionRe: System.StackOverflowException was unhandled Pin
cuongmits21-Apr-08 20:27
cuongmits21-Apr-08 20:27 
GeneralRe: System.StackOverflowException was unhandled Pin
Yusuf22-Apr-08 1:35
Yusuf22-Apr-08 1:35 
GeneralMulti threading To my Search Program Pin
shinboxe21-Apr-08 1:39
shinboxe21-Apr-08 1:39 
GeneralRe: Multi threading To my Search Program Pin
J4amieC21-Apr-08 2:15
J4amieC21-Apr-08 2:15 
GeneralRe: Multi threading To my Search Program Pin
shinboxe21-Apr-08 3:35
shinboxe21-Apr-08 3:35 
GeneralRe: Multi threading To my Search Program Pin
Simon P Stevens21-Apr-08 3:35
Simon P Stevens21-Apr-08 3:35 
GeneralRe: Multi threading To my Search Program Pin
shinboxe21-Apr-08 3:54
shinboxe21-Apr-08 3:54 
GeneralRe: Multi threading To my Search Program Pin
Simon P Stevens21-Apr-08 4:22
Simon P Stevens21-Apr-08 4:22 
GeneralRe: Multi threading To my Search Program Pin
shinboxe21-Apr-08 8:57
shinboxe21-Apr-08 8:57 
Questionhow to know that an internet connection is alive at some instant? Pin
ptr2void21-Apr-08 1:03
ptr2void21-Apr-08 1:03 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
phannon8621-Apr-08 1:16
professionalphannon8621-Apr-08 1:16 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
ptr2void21-Apr-08 1:25
ptr2void21-Apr-08 1:25 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
Pete O'Hanlon21-Apr-08 1:44
mvePete O'Hanlon21-Apr-08 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.