The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
I just added an ItemsControl binding to a readonly observable collection (no DataTemplate, removed them all) and.. Bam!
And, I quote:
Additional information: The runtime has encountered a fatal error. The address of the error was at 0x67088beb, on thread 0x1444. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
mm... currently targeting .NET4.5, might give 4.6 a go!...
Never had that one before, I think ...
Found it out!
My Layers (in the Layers collection) were Visuals. (Further those visuals were already displayed and in another Visual hierarchy).
Even though I was just planning to use them as data source (for a Layers' properties grid).
I guess using Visual as ItemSource in ItemsControl is... causing FatalEngineException!
Suit and Tyrannosaurus Rex Kwon-Doberman Pincer self to see if you are dreaming of a white men can't jump streets of fire on the mountain division and multiplicate Winslett a = 2 B or not to bees buzz Aldren the summertime when the weather his hot so you get into your bathing suit