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"

On 21.02.2015 17:56, luiz americo pereira camara wrote:

OK. They are equal so problem is elsewhere

One  last shot.

Can you check the values of wFileStr FileName and Handle properties?

Luiz

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

Reply via email to