![word document missing grids word document missing grids](https://s3.studylib.net/store/data/007067140_1-8d4cf77b60acaa652b193c6ebdc25d0a-768x994.png)
Common sources of this bug include user marshaling errors for COM - interop or PInvoke, which may corrupt the stack This error may be a bug in the CLR or in the unsafe or non - verifiable portions of user code. The address of the error was at 0x583ee28b, on thread 0x2af0. Additional information : The runtime has encountered a fatal error. The error has a message of: Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'C:\Projects\TestFailFast\TestFailFast\bin\Debug\'. Which immediately kills the application, with no chance to catch it. Later I do some measuring on it, which throws a FatalExecutionEngineError, To give a little more context as to what is going on here, the xaml is generated externally.
![word document missing grids word document missing grids](https://venturebeat.com/wp-content/uploads/2020/05/a100.jpg)
Thanks for taking the time to look into this. If you have any compliments or complaints to This can be beneficial to other community members reading this thread. Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. I also suggest you set Height and Width properties on TextBlock instead set HorizontalAlignment property. I do not know how it is calculated, if you are interested, you can look at the TextBlock source code. In your case, i t seems that the Inner Text containing the Whitespace is covered by TextBlock, When you set HorizontalAlignment property value to Center, the TextBlock would aligned to the center of the layout slot for Grid. The HorizontalAlignment property default value is Stretch. Since you did not set explicitly Height and Width properties on an TextBlock, the layout of TextBlock would use HorizontalAlignment to arrange and measure. Property is used to set the alignment of text in the TextBlock. The HorizontalAlignment property is used to set the alignment of the TextBlock in the parent container.>Changing the HorizontalAlignment to TextAlignment does work, but I'm curious about what is going on here