try the following code and you'll get an error.
It depends on how much memory you've got ,my current machine has 512mb so 2000000 bytes was way above the limit.


StringBuilder sb = new StringBuilder();

for (int i = 0 ; i<20000;i++)

{
 sb.Append("0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789");
}
throw new Exception(sb.ToString());

 

*thnx to hadar rosen for the telling me about this.