Wrong GetText() implementation

Topics: Developer Forum
Sep 13, 2006 at 4:36 PM
The current GetText() implementation returns a string filled with null chars. Indeed, through the SendMessageDirect() functions, the text length is correctly computed and the text buffer is created. However, the final call is SendMessageDirect(SCI_GETTEXT, 0, (IntPtr)buffer), while Scintilla expects the buffer length as wParam. As it is 0, the buffer is left untouched.

Michael.
Coordinator
Sep 15, 2006 at 12:01 AM
This discussion has been copied to Work Item 3259. You may wish to continue further discussion there.