
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET StackOverflowException</title>
	<atom:link href="http://merill.net/2003/07/aspnet-stackoverflowexception/feed/" rel="self" type="application/rss+xml" />
	<link>http://merill.net/2003/07/aspnet-stackoverflowexception/</link>
	<description>My utmost for His highest, my best for His glory</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:24:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ben</title>
		<link>http://merill.net/2003/07/aspnet-stackoverflowexception/comment-page-1/#comment-318</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 24 Jan 2005 23:15:18 +0000</pubDate>
		<guid isPermaLink="false">/post/2003/07/ASPNET-StackOverflowException.aspx#comment-318</guid>
		<description>If you use a property like this:

public string test
{
  set
  {
     test=value;
  }
}

What you are doing is making an endless recursive call because you are setting the public string value with it&#039;s own value.

You want something more like this:

private string secretTest;

public string test
{
  set
  {
     secretTest=value;
  }
}

When I get a stack overflow it is almost always because my public variable is called something like ThisString and my private one is called thisString and I typo and give them the same name.</description>
		<content:encoded><![CDATA[<p>If you use a property like this:</p>
<p>public string test<br />
{<br />
  set<br />
  {<br />
     test=value;<br />
  }<br />
}</p>
<p>What you are doing is making an endless recursive call because you are setting the public string value with it&#8217;s own value.</p>
<p>You want something more like this:</p>
<p>private string secretTest;</p>
<p>public string test<br />
{<br />
  set<br />
  {<br />
     secretTest=value;<br />
  }<br />
}</p>
<p>When I get a stack overflow it is almost always because my public variable is called something like ThisString and my private one is called thisString and I typo and give them the same name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhang Qi</title>
		<link>http://merill.net/2003/07/aspnet-stackoverflowexception/comment-page-1/#comment-317</link>
		<dc:creator>Zhang Qi</dc:creator>
		<pubDate>Sun, 08 Feb 2004 00:00:10 +0000</pubDate>
		<guid isPermaLink="false">/post/2003/07/ASPNET-StackOverflowException.aspx#comment-317</guid>
		<description>Hi:
Every time I use property, such as
public string test
{
          get
	{
	          return test;
	}
          set
	{
	          test = value;
	}
}
this error occur,  why this happen?  Is it a bug? or any reasonable thing in it?
Thank you

Qi</description>
		<content:encoded><![CDATA[<p>Hi:<br />
Every time I use property, such as<br />
public string test<br />
{<br />
          get<br />
	{<br />
	          return test;<br />
	}<br />
          set<br />
	{<br />
	          test = value;<br />
	}<br />
}<br />
this error occur,  why this happen?  Is it a bug? or any reasonable thing in it?<br />
Thank you</p>
<p>Qi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhang Qi</title>
		<link>http://merill.net/2003/07/aspnet-stackoverflowexception/comment-page-1/#comment-316</link>
		<dc:creator>Zhang Qi</dc:creator>
		<pubDate>Sat, 07 Feb 2004 23:44:27 +0000</pubDate>
		<guid isPermaLink="false">/post/2003/07/ASPNET-StackOverflowException.aspx#comment-316</guid>
		<description>Hi:
Every time I use property, such as
public string test
{
          get
	{
	          return test;
	}
          set
	{
	          test = value;
	}
}
this error occur,  why this happen?  Is it a bug? or any reasonable thing in it?
Thank you

Qi</description>
		<content:encoded><![CDATA[<p>Hi:<br />
Every time I use property, such as<br />
public string test<br />
{<br />
          get<br />
	{<br />
	          return test;<br />
	}<br />
          set<br />
	{<br />
	          test = value;<br />
	}<br />
}<br />
this error occur,  why this happen?  Is it a bug? or any reasonable thing in it?<br />
Thank you</p>
<p>Qi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amit</title>
		<link>http://merill.net/2003/07/aspnet-stackoverflowexception/comment-page-1/#comment-315</link>
		<dc:creator>amit</dc:creator>
		<pubDate>Mon, 24 Nov 2003 21:18:51 +0000</pubDate>
		<guid isPermaLink="false">/post/2003/07/ASPNET-StackOverflowException.aspx#comment-315</guid>
		<description>Hi There,

If you are using something like Value Objects to move data from ur xxx.aspx.cs to your delegates. Then thers one solution, Take care while creating your ValueObjectClass. ( Dont declare attributes of your value object as property i mean with get and set ).  This will work fine.

Please feel free to contact me if u have any further queries or it dosent solev ur problem.

Amit</description>
		<content:encoded><![CDATA[<p>Hi There,</p>
<p>If you are using something like Value Objects to move data from ur xxx.aspx.cs to your delegates. Then thers one solution, Take care while creating your ValueObjectClass. ( Dont declare attributes of your value object as property i mean with get and set ).  This will work fine.</p>
<p>Please feel free to contact me if u have any further queries or it dosent solev ur problem.</p>
<p>Amit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://merill.net/2003/07/aspnet-stackoverflowexception/comment-page-1/#comment-314</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 18 Oct 2003 03:34:43 +0000</pubDate>
		<guid isPermaLink="false">/post/2003/07/ASPNET-StackOverflowException.aspx#comment-314</guid>
		<description>You look at your recent changes for a recursive call.</description>
		<content:encoded><![CDATA[<p>You look at your recent changes for a recursive call.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

