There seems to be a similar bug in PlotWaveform.
int PlotWaveform (int panelHandle, int controlID, void *yArray, int numberOfPoints, int yDataType, double yGain, double yOffset, double initialX, double xIncrement, int plotStyle, int pointStyle, int lineStyle, int pointFrequency, int color);
Some combinations of numberOfPoints and xIncrement cause the dll that I'm working on to crash. I wasted several hours on this problem before I remembered seeing this thread previously.