Recent

Author Topic: In 1.8 rc4 when I complie a app I get "rsListMustBeEmpty" identifier not found  (Read 2823 times)

vonskie

  • Full Member
  • ***
  • Posts: 184
In rc4 when I complie a app I get "rsListMustBeEmpty" identifier not found in lclbase

Please help

I have another computer and it compiles just fine.

In stringhashlist

procedure TStringHashList.SetCaseSensitive(const Value: Boolean);
begin
  if fCaseSensitive <> Value then
  begin
    if Count > 0 then
    begin
      raise EListError.Create(rsListMustBeEmpty);
      exit;
    end;
    fCaseSensitive := Value;
  end;
end;   

balazsszekely

  • Guest
You need lrsListMustBeEmpty instead of rsListMustBeEmpty, declared in unit LazUtilsStrConsts.

vonskie

  • Full Member
  • ***
  • Posts: 184
I uninstalled 1.8 and reinstalled it and the problem went away.


wp

  • Hero Member
  • *****
  • Posts: 11855
You must have had a mixup of versions. TStringHashList used to be in lcl before version 1.8 and got the strings from lclstrconsts. Now it is in components/lazutils and uses the strings from lazutilsstrconsts as GetMem writes. So, if you run Lazarus 1.8RC but find TStringHashList in lcl your installation somewhere must have had a path pointing to the wrong directory.

Yes, reinstallation of into a clean directory and a clean user profile folder is usually the quickest way to solve these issues.

 

TinyPortal © 2005-2018