I had the same problem when I changed to PB603
I made the same change and in a few other places as well
Code: Select all
numUtf8Bytes = ScintillaSendMessage(*this\id, #SCI_GETCURLINE, 0, 0) ;- 1 ;Includes the null, hence the -1. removed to suit pb603
If numUtf8Bytes
bufferPtr = AllocateMemory(numUtf8Bytes+2) ; added an extra byte to suit pb603
If bufferPtr
If *this\state & #GOSCI_LEXERSTATE_ENABLECALLTIPS
blnProceedWithCallTip = #True
EndIf
*utf8Buffer = bufferPtr
caretPos = ScintillaSendMessage(*this\id, #SCI_GETCURLINE, numUtf8Bytes, *utf8Buffer) ; +1 removed to suit pb603
I think something changed in the latest scintilla update.
My reasoning is, if in doubt, include a few a extra bytes 'just in case'
I ended up searching my full project and added extra bytes to all likely AllocateMemory functions.
It seems to have worked.
Jim