2015-02-22 8:05 GMT-03:00 FreeMan <[email protected]>:

>  compiler options:
>
> -dUseCThreads
>
> -FcUTF8
>
> -dEnableUTF8
>
> this is test code:
> var
>   wProgram: String;
>   z:longint;
>   s:string;
> begin
>  Result   := False;
>  wProgram :=ParamStrUTF8(0);
>  wFileStr := TFileStream.Create(wProgram, fmOpenRead);
>  z:= -1;
>  z:=wFileStr.Handle;
>  s:=wFileStr.FileName;
>
> result:
> wProgram --> ^char($000000010CA86358)  '/opt/proje_laz/myproject.app'
> z --> 40
> wFileStr.FileName --> '/opt/proje_laz/myproject.app'
> s --> ^char($000000010CA86358) '/opt/proje_laz/myproject.app'
>
> I getted this result while debugging from Whach list, via copy value.
> wFileStr.FileName and s showing different value. "^charxxxx"
>

OK.

Thanks.

Personally don't have more idea of what is wrong. Hopefully someone else
can find the problem

Luiz
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to