Changes between Initial Version and Version 2 of Ticket #3555
- Timestamp:
- 06/01/17 20:28:13 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3555 – Description
initial v2 3 3 The problem happens when trying to stream a RichEdit with length > 2048 to a variable with _GUICtrlRichEdit_StreamToVar. The stream to file works correctly in this matter. The problem lies within this code which is called by the function: 4 4 5 6 {{{ 5 7 Func __GCR_StreamToVarCallback($iCookie, $pBuf, $iBuflen, $pQbytes) 6 8 #forceref $iCookie … … 13 15 EndFunc ;==>__GCR_StreamToVarCallback 14 16 17 }}} 18 15 19 The buffer is not updated correctly at the end of the function. The solution is to add a line before the return statement and modify the earlier struct set: 16 20 21 {{{ 17 22 Func __GCR_StreamToVarCallback($iCookie, $pBuf, $iBuflen, $pQbytes) 18 23 #forceref $iCookie … … 25 30 Return 0 26 31 EndFunc ;==>__GCR_StreamToVarCallback 32 }}} 27 33 28 34 This correctly updates the struct and solves the character limit.