Welcome to WindowsClient.net | My Blog | Sign in | Join

Rob Relyea - XAMLified

WPF, Silverlight and XAML

Syndication

Sponsors





  • advertise here
"255 depth levels ought to be enough for anybody." - Bill Gates, 2010

Some WPF customers have complained about this help that WPF tries to provide:

Layout recursion reached allowed limit to avoid stack overflow: '255'

We saw the feedback via this forum post, and thought we fixed it in 3.5sp1. I posted in April 2008 that the fix was coming…By the time we got feedback that we didn’t quite fix it (we only changed 1 constant in the code, and there were several necessary), 3.5sp1 was already virtually out the door.

The good news is that we’ve fixed this in WPF 4 to allow a new higher limit of 4096.

That said, use this newfound power responsibly, you really should be trying to keep your visual count down. We realize that some scenarios were blocked by the original limit. We hope this makes things better for you.

Please continue to be vocal with feedback!

Published Saturday, May 22, 2010 5:12 AM by Rob_Relyea
Filed under: ,

Comments

# Dew Drop – Weekend Edition – May 22-23, 2010 | Alvin Ashcraft's Morning Dew@ Sunday, May 23, 2010 7:52 PM

Pingback from  Dew Drop – Weekend Edition – May 22-23, 2010 | Alvin Ashcraft's Morning Dew

# re: "255 depth levels ought to be enough for anybody." - Bill Gates, 2010@ Tuesday, June 08, 2010 2:50 PM

Hilarious title. The original quotation was apocryphally attributed to Bill. Let us know if you get a cease and desist letter for the new version  :D

# re: "255 depth levels ought to be enough for anybody." - Bill Gates, 2010@ Thursday, June 10, 2010 8:53 AM

I can't take credit for that title. Tris, a user in the forum post that I linked to, said it first.

Yes, great title!

Thanks, Rob

Leave a Comment

(required) 
(required) 
(optional)
(required)