Passing null string to a TextBox.Text is not a good idea

I just spent a good few hours trying to find out why my code just stopped working and hangs.

I traced it down to 2 strings that were null at startup and not allocated any value until a few seconds after the start so when the display routine wrote this to a TextBox.Text in the window update handler, it crashed the system without any errors or warnings. Only way out was APP key and reset. :wink:

I’ll post this on the GITHUB for a fix where it should throw an exception so we can at least handle them. :slight_smile:

2 Likes

Thanks. Please share a small example if you can