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

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
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: 1818
  • Hero Points: 151
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: 6823
  • Hero Points: 526
Re: crash on enter in pascal code
« Reply #2 on: October 03, 2017, 02:43:23 PM »
Fixed for next build