Repository URL to install this package:
Version:
3.0.0 ▾
|
program stringconcat;
//compile with -gh
{$ifdef FPC}{$mode objfpc}{$h+}{$INTERFACES CORBA}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
uses
{$ifdef FPC}{$ifdef linux}cthreads,{$endif}{$endif}
sysutils;
var
wstr1: widestring;
begin
{$ifdef mswindows}
winwidestringalloc:= false;
{$endif}
//crash exist with winwidestringalloc also but with bigger application only
wstr1:= '123';
wstr1:= 'ABC'+wstr1+'abc';
writeln(wstr1);
flush(output);
end.