Sign in Join

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

Mailing lists / fpc-pascal / 2010-01

Fatal: Internal Error 20051152

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Roland Turcan

Hello friends,

It started to show this %subject% since I added some code into
{$IF MyBoolCondition}

example:

{$MODE Delphi}
Unit MyUnit;
interface
Uses MyConditions;
{$IF MyCond}
//some declaration
implementation
// some code
{$ELSE}
//some declaration
implementation
// some code
{$IFEND}
end.

What could be a reason and how to avoid it?

Thanks in advance.

------

Mac OS X 10.5.8 Intel
Lazarus SVN r23561
FreePascal r14805

Reply by email

Jonas Maebe
to Roland Turcan
Roland Turcan wrote
Hello friends, It started to show this %subject% since I added some code into

The internalerror is 200501152, not 20051152

{$IF MyBoolCondition} example:

That example does not compile, and even after fixing it so that it does compile, it did not show the problem to me. Please be more careful in the future when reporting problems.

What could be a reason

A bug in the unit loading: http://bugs.freepascal.org/view.php?id=8611

and how to avoid it?

Do not place conditional expressions right after the "uses" statement (maybe adding a dummy constant declaration in between is enough).

Jonas

Reply by email