I have control over MemoEdit (WinForms) (unfortunately, I can not give you the code). If I enter more than 32,000 characters, this will lead to the error "General error that occurred in GDI +" I thought that there was an error (exception) in my control, but then I checked this code on a simple WinForm application:
var myString = new string('G', 32001);
var g = this.CreateGraphics();
g.MeasureString(myString, Font, 1000);
and it crashes with the same error Does anyone know why this is happening or where this constant 32000 is indicated? I did not find anything useful on Google.
source
share