On 02 Jul 2014, at 10:36, Virgo Pärna wrote:
On Tue, 01 Jul 2014 13:42:52 -0400, Paul Breneman <paul2...@brenemanlabs.com
> 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 - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal