I am able to assign the .Text property of the UltraTextEditor to a length greater then 32K but when I attempt to retrieve the Text I get the error:
System.NullReferenceException: Object Reference not set to an instance of an object
I store a BASE64 encoded image in my database and convert this back to a .NET image at runtime so the user can see the image assigned to the record. Is there a way to retrieve the Text when exceeding 32K?
Roger,
How are you retrieving the text? What is the call stack when you get this NullReferenceException? I just tried creating an arbitrary string 33,000 characters long and did not have any trouble assigning the value or retrieving the value back. In fact, I didn't get an exception with 333k characters. Do you happen to be using threading? If so, you should try to get the Value/Text of the editor on the main UI thread.
-Matt
Matt,
I am simply using ultraTextEditor1:Text to retrieve the text.
We are not using threading.
The .NET stack trace is:
.NET StackTrace:--> at Progress.ClrBridge.ProMarshal.StringToLONGCHRFLD(ditem* , Object ) at Progress.ClrBridge.ProMarshal.FromString(ditem* , Object ) at Progress.ClrBridge.ProMarshal.ToDItem(ditem* , Object ) at Progress.ClrBridge.BrgClrFromPro.getProperty(BrgClrFromPro* , Int32 , SByte* , SByte* , ditem* , Int32* )