如何安装DWSScript [英] How to install DWSScript

查看:103
本文介绍了如何安装DWSScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装DWSScript组件时遇到问题.我正在使用Delphi XE2,当我尝试编译dwsLibRuntime.dpk时,出现错误(需要数组类型).我正在使用从项目的svn存储库中提取的最新DWScript源.

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.

我在做什么错了?

 toStr:=TStringListCracker(sl).FList[i].FString; //produces error
 System.MonitorExit(sl);

推荐答案

您没有使用最新版本,也不再使用监视器(由于RTL实现中存在争用错误),第二行应显示为"sl.FLock.Leave;". 您可能使用的是Delphi XE2之前的版本,因为Monitor于2011年2月发布.

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

请确保您位于头目录/主目录上,否则Delphi不会指向与SVN客户端更新的目录不同的目录.

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.

这篇关于如何安装DWSScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆