[lazarus] Bugs in lazarus
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Mar 30 01:56:19 EST 2001
On 2001.03.30 07:55:39 +0200 FoodTechnologist wrote:
> > If there were try..excepts you would not found the bug and reported it
> > and I would not fixed it. But without them, I fixed it. Therefore I
will
> > not add try..excepts to code without a raise.
>
> Course, brackets should be like
> {$ifndef DEBUG}
> try
> {$endif}
> ..........
> {$ifndef DEBUG}
> except end;
> {$endif}
>
> or even
> {$ifdef NOCRUSH}
> try
> {$endif}
> ..........
> {$ifdef NOCRUSH}
> except end;
> {$endif}
If we put try..excepts ends; in this part of code, a user won't notice that
there is a bug. Unhandled bugs can produce inconsistency and in the case of
the code tools loss of code. Hence the alternative would look like:
try
except
MessageDlg('There is a bug in the code tools.'
+' Please kill lazarus to avoid further inconsistency.'
+' Your code can already be damaged.',
...);
end;
This looks somewhat nicer than a crash. But there will be no lineinfo
output and your bugreport will not be very helpful, which reduces the
chance to find the bug.
Are you sure, you want this?
Mattias
More information about the Lazarus
mailing list