<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 13, 2015 at 7:04 AM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Sat, 13 Jun 2015, silvioprog wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Thu, Jun 11, 2015 at 2:26 AM, silvioprog <<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>> wrote:<br>
Hello,<br>
Trying to set the value 'a' to a property Char and a 'True' to a Boolean property, I got some errors (logs in attached) in function 'TypInfo.SetPropValue'. But I did the same test in Delphi XE<br>
7 and also in Delphi 7 (after some changes in my demo, shure), and it worked fine. So I decided to test other property types looking for more errors.<br>
<br>
I attached a small project simulating a test-case, testing the function 'TypInfo.SetPropValue' with commum primitive types in FPC and Delphi.<br>
<br>
Please see the LOG_*.TXT files, it has the comparition between FPC (trunk) and Delphi (XE7), both tests done in 32 and 64 CPUs.<br>
<br>
Is this bug or a normal behaviour of FPC RTTI? If you confirm it as but, I can try to send a patch to fix that.<br>
<br>
Thank you!<br>
<br>
<br>
Nobody? =/<br>
<br>
It seems that current FPC SetPropValue looks like Delphi 7, but IMHO this function could follow the new Delphi implementation, including new unicode support. BTW, if anyone confirm it as bug, I can<br>
try to make a patch and send it via bugtracker.<br>
<br>
</blockquote>
<br></span>
Please do. Include your test program.<span class=""><font color="#888888"><br>
<br>
Michael.</font></span></blockquote></div><div class="gmail_extra"><br></div>Nice.<br clear="all"><div><br></div><div>Done in:</div><div><br></div><div><a href="http://bugs.freepascal.org/view.php?id=28290">http://bugs.freepascal.org/view.php?id=28290</a><br></div><div><br></div><div>It could be related to:</div><div><br></div><div><a href="http://bugs.freepascal.org/view.php?id=28278">http://bugs.freepascal.org/view.php?id=28278</a> (patch for fix attached there)<br></div><div><br></div><div>Thank buddy! (y)</div><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>