tw1856.pp 451 B

12345678910111213141516171819202122232425262728293031
  1. { %version=1.1 }
  2. {$ifdef fpc}
  3. {$mode objfpc}
  4. {$endif}
  5. type
  6. TFlowItem = class
  7. text: string; //replace with "shortstring" and the crash goes away
  8. end;
  9. TFlow = array of TFlowItem;
  10. TFlow2 = array of array of TFlowItem;
  11. var
  12. flow: tflow;
  13. flow2 : TFLow2;
  14. begin
  15. setlength(flow, 10);
  16. setlength(flow, 1);
  17. flow[1]:=TFlowItem.Create;
  18. { release }
  19. setlength(flow, 0);
  20. setlength(flow2, 10, 20);
  21. setlength(flow2, 0);
  22. writeln('no crash');
  23. end.