On 02 Jul 2014, at 10:36, Virgo Pärna wrote:

On Tue, 01 Jul 2014 13:42:52 -0400, Paul Breneman <[email protected] > wrote:
      Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0],
StringLen, requiredSize, RInfo);


Also, first character of string is 1'st, not 0'th. When passing string as PChar like that would cause overwriting internal string structures AFAIK.

As has been mentioned earler in the thread, MyReturnStr itself is a pchar.


Jonas
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to