Author Topic: crash on enter in pascal code  (Read 651 times)

Graeme

  • Senior Community Member
  • Posts: 2321
  • Hero Points: 305
crash on enter in pascal code
« on: October 03, 2017, 10:03:31 am »
If you put the cursor at the end of the comment line below that finishes with CRC16 END and press return, slick goes into a permanent busy loop and has to be killed with task manager.  Happens in V21.0.3 and in RC2.

Code: [Select]
procedure calc_eeprom_stringlist_crc(const stringlist_data : TStringList, var RunCrc : word, var ln : cardinal);
var
  k, h, len : cardinal;
begin
  // LEN CAL Z1 Z2 Z3 F1 A1 F2 A2 F3 A3 CRC16 END
  RunCrc := 0;
  for k := 2 to 10 do      // Z1 to A3
    begin
      len := length(stringlist_data[k]);
      ln := ln + len;
      for h := 0 to len - 1 do
        ByteCrc16(stringlist_data[k][h], RunCrc);
    end;
end;


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1074
  • Hero Points: 96
Re: crash on enter in pascal code
« Reply #1 on: October 03, 2017, 01:11:16 pm »
Reproduced, taking a look at it.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4739
  • Hero Points: 383
Re: crash on enter in pascal code
« Reply #2 on: October 03, 2017, 02:43:23 pm »
Fixed for next build