CnPack Forum


 
Subject: 1.0.8.772 代码格式化报错
西瓜163
新警察
Rank: 1



UID 67120
Digest Posts 0
Credits 27
Posts 4
点点分 27
Reading Access 10
Registered 2011-7-28
Status Offline
Post at 2015-9-21 16:06  Profile | Blog | P.M. 
1.0.8.772 代码格式化报错

1.0.8.772 代码格式化报错  XE2下

procedure TfrmIn.CnRS2321ReceiveData(Sender: TObject; Buffer: Pointer;
  BufferLength: Word);
var
  S: AnsiString;
begin

  SetLength(S, BufferLength);
Move(Buffer^, PAnsiChar(S)^, BufferLength);
  LoadometerStr := S;


end;

Move(Buffer^, PAnsiChar(S)^, BufferLength); 这个提示报错。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-9-21 18:44  Profile | Blog | P.M. 
谢谢报告,我查一下。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-9-22 12:25  Profile | Blog | P.M. 
经过查证,是处理带^的旧式字符串时带来的副作用,目前最新的每日构建版775已修正了此问题。

http://www.cnpack.org/downbuilds.php

烦请验证?
Top
西瓜163
新警察
Rank: 1



UID 67120
Digest Posts 0
Credits 27
Posts 4
点点分 27
Reading Access 10
Registered 2011-7-28
Status Offline
Post at 2015-9-22 16:43  Profile | Blog | P.M. 


QUOTE:
原帖由 <i>Passion</i> 于 2015-9-22 12:25 发表<br />
经过查证,是处理带^的旧式字符串时带来的副作用,目前最新的每日构建版775已修正了此问题。<br />
<br />
<a href="http://www.cnpack.org/downbuilds.php" target="_blank">http://www.cnpack.org/downbuilds.php</a><br />
<br />
烦请验证?

<br />

每日构建版775经测试 Move(Buffer^, PAnsiChar(S)^, BufferLength);

格式化成功。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-9-23 16:46  Profile | Blog | P.M. 
Top
 




All times are GMT++8, the time now is 2024-11-22 18:41

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008590 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP