LCL: removed fpc 2.0.2 workaround and added dumpstack trace when an exception occurs while translating.

git-svn-id: trunk@10972 -
This commit is contained in:
vincents 2007-04-19 09:23:26 +00:00
parent a9aeafd85d
commit 946c1b17f0

View File

@ -35,12 +35,6 @@ unit Translations;
{$mode objfpc}{$H+}{$INLINE ON} {$mode objfpc}{$H+}{$INLINE ON}
{$IF defined(VER2_0_2) and defined(win32)}
// FPC <= 2.0.2 compatibility code
// WINDOWS define was added after FPC 2.0.2
{$define WINDOWS}
{$endif}
interface interface
uses uses
@ -203,6 +197,7 @@ begin
on e: Exception do begin on e: Exception do begin
DebugLn('Exception while translating ', ResUnitName); DebugLn('Exception while translating ', ResUnitName);
DebugLn(e.Message); DebugLn(e.Message);
DumpExceptionBackTrace;
end; end;
end; end;
end; end;