Problem with concating of multiple wide string in wcout - unnecessary space after each charcater
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Dec 10 17:43:46 UTC 2021
Hi,
can you please submit the code you are using?
I've seen some samples here:
https://github.com/tornaia/panama-tutorial
But I don't see something which would print "bluetooth address".
Thanks
Maurizio
On 10/12/2021 16:17, Ladislav Török wrote:
> Environment:
> Windows 2010,
> Microsoft Visual Studio 2019,
> java -version:
> openjdk version "17-panama" 2021-09-14
> OpenJDK Runtime Environment (build 17-panama+3-167)
> OpenJDK 64-Bit Server VM (build 17-panama+3-167, mixed mode, sharing)
> * Builded DLL with use of C++/WinRT.
>
> Example:
> build simple dll with one function when is used call wcout (with concating
> of multiple wide string) in Microsoft Visual Studio 2019
>
> Note: problem only when build DLL is in RELEASE x64, after build DLL in
> DEBUG is all ok
>
> Sample output wcout from funcion in DLL is:
> java --enable-preview --add-modules jdk.incubator.foreign
> --enable-native-access=ALL-UNNAMED
> -Djava.library.path=lib/helloworldwinrt/target -classpath
> target/classes;lib/target/jar/*
> com.github.tornaia.panama.tutorial005.Tutorial005
> WARNING: Using incubator modules: jdk.incubator.foreign
> Start
> B l u e t o o t h a d d r e s s : 1 8 1 1 6 1 4 6 6 0 6 3 2 1 3
> End
>
> After each character is one space!
>
> In case need I can attach SSCCE.
>
> With regards Ladislav
More information about the panama-dev
mailing list