Delphi - SuperObject : raised exception class eintoverflow with message'Integer overflow'.
2013-01-25 11:49
531 查看
点击打开链接
这个是BUG,官方论坛已经给出这个BUG的修复了:
单元 superobject.pas,位置为 5629 行:
//class function TSuperAvlEntry.Hash(const k: SOString): Cardinal;
//var
// h: cardinal;
// i: Integer;
//begin
// h := 0;
//{$Q-}
// for i := 1 to Length(k) do
// h := h*129 + ord(k[i]) + $9e370001;
//{$Q+}
// Result := h;
//end;
//修改为:
{$OVERFLOWCHECKS OFF}
class function TSuperAvlEntry.Hash(const k: SOString): Cardinal;
var
h: cardinal;
i: Integer;
begin
h := 0;
for i := 1 to Length(k) do
h := h*129 + ord(k[i]) + $9e370001;
Result := h;
end;
{$OVERFLOWCHECKS ON}
这个是BUG,官方论坛已经给出这个BUG的修复了:
单元 superobject.pas,位置为 5629 行:
//class function TSuperAvlEntry.Hash(const k: SOString): Cardinal;
//var
// h: cardinal;
// i: Integer;
//begin
// h := 0;
//{$Q-}
// for i := 1 to Length(k) do
// h := h*129 + ord(k[i]) + $9e370001;
//{$Q+}
// Result := h;
//end;
//修改为:
{$OVERFLOWCHECKS OFF}
class function TSuperAvlEntry.Hash(const k: SOString): Cardinal;
var
h: cardinal;
i: Integer;
begin
h := 0;
for i := 1 to Length(k) do
h := h*129 + ord(k[i]) + $9e370001;
Result := h;
end;
{$OVERFLOWCHECKS ON}
相关文章推荐
- Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'Multibyte function overloading in
- 报错 Exception 'yii\db\Exception' with message 'SQLSTATE[HY000]
- PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file问题解决
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'funcSetId' in 'class java.lang.Integer'
- PHP + mysql 遇到Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error
- PDO处理事务部分的报错 :Uncaught exception 'PDOException' with message There is no active transaction
- org.json.JSONException: A JSONObject text must begin with '{' at character 1 of {解决方法
- 关于json解析时异常org.json.JSONException: A JSONObject text must begin with '{' at character 1 of {的解决方法
- 有关 flex.messaging.MessageException: Cannot create class of type 'XXX'. Type 'XXX' not found.
- msxml document class EOleSysError with message '没有注册类别' 错误的解决
- 简单的问题,用类创建一个对象error C2380: type(s) preceding 'Complex' (constructor with return type, or illegal redefinition of current class-n
- Got an exception - java.lang.RuntimeException: Unable to get class information for @throws tag 'XXXException'.
- Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.edu.bzu.soap.S
- Checkstyle "Unable to get class information for @throws tag 'xxxException" 问题
- 错误:A SPI class of type org.apache.lucene.*** with name 'Whitespace' does not exist.
- 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstrain
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFacto
- EventBusException: Subscriber class *** and its super classes have no public methods with the @Subsc
- invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.j
- net.sf.json.JSONException: 'object' is an array. Use JSONArray instead