Reputation: 11767
I am having trouble installing DWSScript component. I am using Delphi XE2 and when I try to compile the dwsLibRuntime.dpk I get an error ( Array type required ). I am using the latest DWScript source pulled from the project's svn repo.
What am I doing wrong?
toStr:=TStringListCracker(sl).FList[i].FString; //produces error
System.MonitorExit(sl);
Upvotes: 3
Views: 893
Reputation: 6211
You're not using the latest version, the monitor isn't used anymore (due to contention bugs in the RTL implementation), the second line should read as "sl.FLock.Leave;". You're likely on a pre-Delphi XE2 version, as the Monitor was dropped in february 2011.
http://code.google.com/p/dwscript/source/browse/trunk/Source/dwsUtils.pas#475
Make sure you're on the head/trunk, or Delphi isn't pointed to a different directory than the one updated by your SVN client.
Upvotes: 10
Reputation: 1603
First of all make sure you downloaded the newest version from the main source, because DWScript 2.3 preview 1 is now available.
Then you must notice on this page that everyday you have changes on DWScript, so check where is the error (in which unit), then go to the source code page to take the most recent units.
Personally, it happened to me, and after I fixed some changes, it worked fine.
Upvotes: 1