<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    compiler options:
    <meta name="qrichtext" content="1">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->-dUseCThreads</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">-FcUTF8</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">-dEnableUTF8<!--EndFragment--></p>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
    this is test code:<br>
    var<br>
      wProgram: String;<br>
      z:longint;<br>
      s:string;<br>
    begin<br>
     Result   := False;<br>
     wProgram :=ParamStrUTF8(0);<br>
     wFileStr := TFileStream.Create(wProgram, fmOpenRead);<br>
     z:= -1;<br>
     z:=wFileStr.Handle;<br>
     s:=wFileStr.FileName;<br>
    <br>
    result:<br>
    wProgram --> ^char($000000010CA86358) 
    '/opt/proje_laz/myproject.app'<br>
    z --> 40<br>
    wFileStr.FileName --> '/opt/proje_laz/myproject.app'<br>
    s --> ^char($000000010CA86358) '/opt/proje_laz/myproject.app'<br>
    <br>
    I getted this result while debugging from Whach list, via copy
    value. wFileStr.FileName and s showing different value. "^charxxxx"<br>
    <br>
    <div class="moz-cite-prefix">On 21.02.2015 17:56, luiz americo
      pereira camara wrote:<br>
    </div>
    <blockquote
cite="mid:CAMa0j60=2o2rSiUE1RtJvotccGz9wBEu8mRZc=vUq8qQrMtoOw@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>OK. They are equal so problem is elsewhere<br>
        <br>
      </div>
      <div>One  last shot.<br>
        <br>
      </div>
      <div>Can you check the values of wFileStr FileName and Handle
        properties?<br>
      </div>
      <div><br>
      </div>
      <div>Luiz</div>
    </blockquote>
    <br>
  </body>
</html>