The whole error message:
The code that causes it:
dwData is a pointer to STRPTR(dynamicstring$)
dwLength is the length of the string -1
If I replace the CopyMemory with this:
It works, so it must be something in the way I'm passing the pointers to CopyMemory that's wrong.
Anyone out there can Clue/4 me?
Originally posted by PBWin Debugger Output
Code:
PROPERTY SET MemoryBuffer(BYVAL dwLength AS DWORD, BYVAL dwData AS DWORD) ' note that depending on what you're passing ' length needs to be ZERO based LOCAL pBuffer, pSource AS BYTE POINTER, pLength, pIndex AS DWORD REDIM memBuffer(dwLength) pSource = dwData pBuffer = VARPTR(memBuffer(0)) pLength = dwLength ' + 1 CopyMemory(pBuffer,pSource,pLength) END PROPERTY
dwLength is the length of the string -1
If I replace the CopyMemory with this:
Code:
FOR pIndex = 0 TO dwLength memBuffer(pIndex) = @pSource[pIndex] NEXT pIndex
Anyone out there can Clue/4 me?
Comment