How to install DWSScript

本秂侑毒 提交于 2019-12-22 09:49:59

问题


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);

回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/9885335/how-to-install-dwsscript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!