[Wine] Re: Problem with strings in Delphi Program
Yves Glodt
y.glodt at sitasoftware.lu
Fri Oct 28 02:27:30 CDT 2005
Yves Glodt wrote:
> On Thursday 27 October 2005 11:40, Jonathan Ernst wrote:
>> Hi,
>
> Hi and thanks for the fast answer
>
>> What version of Wine are you using ?
>
> I am using version 20050930 from debian sid, and I am currently checking out
> cvs and will compile it to see if I can reproduce the problem...
To come back to the news, with cvs from yesterday my software works
fine, even very fine, apart of that I can't print (from notepad I can,
will look into that today...)
But there is something strange however...
We made a testcase, and it still shows the problem that we had
initially. You can download it here:
http://www.sita.lu/~yves/combobox-wine_test.zip
For testing, just launch it in console "wine winetest.exe", and press
the 2 buttons alternately (and select other values from the combobox),
you will see that the text output on console is not the same between both.
(bug = strings get some additional chars at the end when using "string"
property)
regards,
Yves
>> If you are using Wine 0.9 you should report this bug in bugzilla with
>> preferably a small test app (source and binary) and it would be fixed
>> faster I think.
>
> If I can still reproduce it I will do so...
>
> thanks and best regards,
> Yves
>
>> Thanks.
>>
>> Le jeudi 27 octobre 2005 à 09:42 +0200, Yves Glodt a écrit :
>>> Hello,
>>>
>>> I tried to run a program written in Delphi in wine and it ran quite
>>> perfectly, but sadly there was one important detail that made using it
>>> impossible...
>>>
>>> It seems that wine has a problem with the text inputs (edits). They are
>>> "string" datatypes (8 bit ansi string), and not null terminated.
>>>
>>> The problem was showing itself e.g. at the login form of the program.
>>> The password I typed had 4 characters, but wine added some characters to
>>> the end of the 4 chars, which seemed to come from other strings in the
>>> form. To be more wordy:
>>>
>>> The form has 2 labels (user and pass) and 2 string fields:
>>>
>>>
>>> User: _____
>>> Pass: _____
>>>
>>>
>>> We added a writeln that printed out the typed password on the
>>> commandline, and saw that my password (which was "test") was printed as
>>> "testPass".
>>>
>>> The characters added at the end of the string seemed to change randomly,
>>> but often came from other strings found in the program...
>>>
>>> What could I do to resolve this problem?
>>>
>>> Thanks and best regards,
>>> Yves
More information about the wine-users
mailing list