Thanks you Scott for answering me.
The problem showed up when trying to read back the instrument state of a Tektronixs TDS3014 oscilloscope.
Shown below is the most significant code:
	status = viOpen(viDefaultSession, 		TCPIP::12::INSTR, VI_NULL, VI_NULL, &viESA);
	strTemp = "*LRN?";
	status = viWrite (viESA, (ViBuf)strTemp.GetBuffer(strTemp.GetLength()), strTemp.GetLength(),  &nRetCount);
// Then to retrieve the data:
	status = viRead(viESA, (ViBuf)cResult, sizeof(cResult), &nRetCount);
The viRead command will generate an error to the effect that there is insufficient memory.  Sorry, I no longer have the oscilloscope on site and can't get the exact error.  Attempts to set the read buffer don't help.
  
Thanks,
Steve