[fpc-pascal] TProcess.CommandLine > 255 fails

Joost van der Sluis joost at cnoc.nl
Sun Jan 4 12:54:19 CET 2009

Op zondag 04-01-2009 om 12:31 uur [tijdzone +0100], schreef
> procedure Run_Command_Wait(TheCommand : string); cdecl;

This 'string' is of the type shortstring, and thus will truncate your
string to 255 characters.

Change it in ansistring or add {$H+} to the beginning of your program.


More information about the fpc-pascal mailing list