Problem getting resources in Release.

I encountered an unknown problem while getting fonts from resources. In debug mode, the code works without problems, and in release mode, the code does not work. I tried to get an array of bytes from a MemoryStream using the ToArray method and assign it to a variable. Going through the debugging step by step, I found that by a quick check of the ToArray method I can see the array, but I can not see what lies in the variable. I would like to understand why and how to deal with it.

Sign In or Register to comment.