Error with panel object -GDI+

what is this bug and how do I get this fixed.
I am trying to convert points and faces of a mesh to a string and output it but it fails, regardless of the size of the mesh.
It works if I write to a txt file but doesn’t display on the panel.