Click here to Skip to main content
15,903,856 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple data access component Pin
..Hubert..26-Feb-03 8:46
..Hubert..26-Feb-03 8:46 
GeneralIs Application Active Pin
OBRon25-Feb-03 7:15
OBRon25-Feb-03 7:15 
GeneralRe: Is Application Active Pin
Stephane Rodriguez.25-Feb-03 8:33
Stephane Rodriguez.25-Feb-03 8:33 
GeneralHere's one for ya Pin
Ryan Cromwell25-Feb-03 6:34
Ryan Cromwell25-Feb-03 6:34 
GeneralRe: Here's one for ya Pin
Ryan Cromwell25-Feb-03 6:40
Ryan Cromwell25-Feb-03 6:40 
GeneralException Handling Pin
jtmtv1825-Feb-03 6:23
jtmtv1825-Feb-03 6:23 
GeneralRe: Exception Handling Pin
Anonymous25-Feb-03 18:17
Anonymous25-Feb-03 18:17 
GeneralMIDI and C# Pin
25-Feb-03 5:21
suss25-Feb-03 5:21 
GeneralRe: MIDI and C# Pin
jtmtv1825-Feb-03 6:01
jtmtv1825-Feb-03 6:01 
GeneralRe: MIDI and C# Pin
Richard Deeming26-Feb-03 1:14
mveRichard Deeming26-Feb-03 1:14 
GeneralVerify Userid Pin
cas941225-Feb-03 4:03
cas941225-Feb-03 4:03 
GeneralDesktop Apps Property Pages and Property sheets Pin
Braulio Dez25-Feb-03 2:57
Braulio Dez25-Feb-03 2:57 
GeneralDataGrid cell Pin
zaza725-Feb-03 1:45
zaza725-Feb-03 1:45 
GeneralRe: DataGrid cell Pin
A.Wegierski25-Feb-03 20:54
A.Wegierski25-Feb-03 20:54 
Generaltranslucent cover over form Pin
bwells25-Feb-03 1:31
bwells25-Feb-03 1:31 
GeneralRe: translucent cover over form Pin
Paul Watson25-Feb-03 1:51
sitebuilderPaul Watson25-Feb-03 1:51 
GeneralRe: translucent cover over form Pin
bwells25-Feb-03 2:12
bwells25-Feb-03 2:12 
GeneralRe: translucent cover over form Pin
Paul Watson25-Feb-03 2:20
sitebuilderPaul Watson25-Feb-03 2:20 
GeneralRe: translucent cover over form Pin
bwells25-Feb-03 2:29
bwells25-Feb-03 2:29 
Generalparse emails Pin
Roger Alsing24-Feb-03 23:58
Roger Alsing24-Feb-03 23:58 
GeneralStackOverflow Pin
monrobot1324-Feb-03 18:33
monrobot1324-Feb-03 18:33 
I have these pieces of code:
public class MyClass : System.Net.Sockets.TcpClient
//
// ...
//
public MyClass ()
		{
			MyProperty = new TcpClient ();
		}
//
// ...
//
public TcpClient MyProperty {
			get { return MyProperty; }

			set { MyProperty = value; }
		}
And when I execute the following line of code I get a StackOverflow:
private MyClass myNewClass = new MyClass ();
If I step through the execution, the program continually calls the set method of MyProperty until the StackOverflow occurs. Any help as to why this is occuring and how to fix it would be very appreciated.

Thanks!

- monrobot13
GeneralRe: StackOverflow Pin
Sean Winstead24-Feb-03 18:51
Sean Winstead24-Feb-03 18:51 
GeneralRe: StackOverflow Pin
David Stone24-Feb-03 19:00
sitebuilderDavid Stone24-Feb-03 19:00 
GeneralRe: StackOverflow Pin
Sean Winstead25-Feb-03 0:28
Sean Winstead25-Feb-03 0:28 
GeneralRe: StackOverflow Pin
David Stone25-Feb-03 15:31
sitebuilderDavid Stone25-Feb-03 15:31 

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.