Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-10

JCF bug

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aradeonas

Hi,

Just saw this problem that if you miss character it will cause Lazarus crash :

Show quoted text 26 lines
unit Unit1; {$mode objfpc}{$H+} interface uses? Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs; type? TForm1 = class(TForm)? private? ? { private declarations } public? ? { public declarations }? end; type? TgardQuality = (gLow, gMedium, gHigh, gVeryHigh); const? TgardQualityNames: array[TgardQuality] of string =? ? ('low,//<----------------------------------------------------- - if you miss ' it will crash? ? 'medium',? ? 'high', 'veryhigh'? ? ); var? Form1: TForm1; implementation {$R *.lfm} end.

Please test it if you have this problem too.

Regards, Ara

http://www.fastmail.com - Same, same, but different... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151004/16e185ec/attachment.html>

Reply by email

Ondrej Pokorny
to Aradeonas
Aradeonas wrote
Sometimes it will crash,not all time.

Yes, it is a bug. Furthermore it causes a lot of memory leaks. Memory is leaked also if there are other (handled) syntax errors in the source.

Ondrej

Reply by email