<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-02-22 8:05 GMT-03:00 FreeMan <span dir="ltr"><<a href="mailto:freeman35@delphiturkiye.com" target="_blank">freeman35@delphiturkiye.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    compiler options:
    
    <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-dUseCThreads</p>
    <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-FcUTF8</p>
    <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-dEnableUTF8</p>
    
    <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"<span class=""><br></span></div></blockquote><div><br></div><div>OK.<br><br></div><div>Thanks.<br><br></div><div>Personally don't have more idea of what is wrong. Hopefully someone else can find the problem<br><br></div><div>Luiz<br></div><br></div></div></div>