I’m appending string variable text, after appending a line throws System.OutOfMemoryException?
Can any one explain why it is throwing error.
str+="something Text"
str+="something Text"
and lastly I assign it to a lable text
When I assign the value of str it throws exception…..
Probably you’re trying to concatenate a lot of strings. Each time you change/concat strings a new string will be produced, because string is an immutable type.
Try using StringBuider to get your big-big string 🙂