Hi,
Win64 application crash if use AsString and Unicode text '你好吗'.
Delphi 10.2.3 and WPTools 8.01.1.
Hi,
Win64 application crash if use AsString and Unicode text '你好吗'.
Delphi 10.2.3 and WPTools 8.01.1.
AsString does not expect unicode text. It expects formatted text as RTF or WPT format.
Since you use the professional version you can activate extended debugging by activating $define WPDEBUG in the project options or the file WPINC.INC. You will then see where the problem happens and can send me at support@wptools.de further information.
Julian
hi,
32 bits no error, only 64 bits crash.
Please fix it in 64 bits or any solution?
I save asstring into MariaDB text field,
Also load from text field set asstring.
Sample program sent to support@wptools.de, please check and test.
Thanks
Tested your project ...
I have no crash here - used the official 8.01.1 version.
I assume the problem happens in
ShowMessage(WPRichText1.AsString);
As wrote before:
add the compiler symbol WPDEBUG and you get a hint on the pascal
line where the problems happens.
I tested again - cannot find a problem in 8.01.1 -
so please try if it really makes a difference which text you enter. If unicode text is a problem.
Sometimes it happens that the compiler finds DCU units in different locations. If an older version is combined with a new one, problems can happen anywhere in the program.
Please also add
{$HIGHCHARUNICODE ON}
to WPINC.INC. It may make a difference.
Thank You for Your further reports.
I was able to reproduce the problem and posted a hot fix for the RTF writer.