[fpc-devel] RangeCheck error in SetResourceStrings

Petr Kristan petr.kristan at epos.cz
Thu Jun 2 09:34:14 CEST 2011


Hi.

After upgrade fpc to trunk rev. 17622 I get in function SetResourceStrings line 333 fpc_rangeerror. 
s:=SetFunction(ResStr^.Name,ResStr^.DefaultValue,ResStr^.HashValue,arg);

This occurs on translation resource: 
ResStr^ = {NAME = 0x9e7410 'rtlconsts.smcinil', CURRENTVALUE = 0x0, DEFAULTVALUE = 0x0, HASHVALUE = 4294967295, DUMMY = 0}

Definition of resourcestring I found in:
rtl/objpas/rtlconst.inc:  SMCINil                       = '';

But in rst file is not '' but this:
rtl/units/i386-win32/rtlconsts.rst
# hash value = 4294967295
rtlconsts.smcinil=

I tried manualy repair rtlconsts.rst 
rtlconsts.smcinil=''
And after rebuild everything was ok.

I assume that file is generated, but cannot found how.
In order to try repair it.

Petr

-- 
Petr Kristan
.
EPOS PRO s.r.o., Bozeny Nemcove 2625, 530 02 Pardubice
tel: +420 466335223    Czech Republic (Eastern Europe) 
fax: +420 466510709



More information about the fpc-devel mailing list