There were two fixes made to cwui.ocx in Measurement Studio 7.0 that address issues with FillToBase that could possibly cause this behavior. I suggest that you update to the latest version of cwui.ocx and see if the issue still occurs. You can download the installer
here. Please give this a try and let me know if it resolves the issue.
I doubt that this is related to the issue at all, but I suspect that your call to ZeroMemory is not doing what you intend it to do. When you pass plotData to ZeroMemory, your are invoking the cast operator, which is going to give you a pointer to the underlying data array, which is managed by
CNiScalarVector. The call to sizeof(plotData) is going to return the size of the CNiReal64Vector instance, not the length of the underlying data array. Incidentally, the size of the CNiReal64Vector instance is 20 bytes, while the length of the underlying data array is 1024 bytes. The default behavior of the vector, when initialized to a non-zero size, is to set all values to 0, so you do not need to do this explicitly anyway.