Changes between Initial Version and Version 2 of Ticket #3555


Ignore:
Timestamp:
06/01/17 20:28:13 (5 years ago)
Author:
mLipok
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3555 – Description

    initial v2  
    33The 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:
    44
     5
     6{{{
    57Func __GCR_StreamToVarCallback($iCookie, $pBuf, $iBuflen, $pQbytes)
    68        #forceref $iCookie
     
    1315EndFunc   ;==>__GCR_StreamToVarCallback
    1416
     17}}}
     18
    1519The 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:
    1620
     21{{{
    1722Func __GCR_StreamToVarCallback($iCookie, $pBuf, $iBuflen, $pQbytes)
    1823        #forceref $iCookie
     
    2530        Return 0
    2631EndFunc   ;==>__GCR_StreamToVarCallback
     32}}}
    2733
    2834This correctly updates the struct and solves the character limit.