LibraryLinkUtilities icon indicating copy to clipboard operation
LibraryLinkUtilities copied to clipboard

LLU_DEBUG cannot print Chinenes

Open Juddd opened this issue 2 years ago • 0 comments

After compile the LibraryLinkUtilities\tests\UnitTests\ErrorReporting\TestSources\LoggerTest.cpp with this CMakeLists.txt, I can run the function LogDemo like this: image But when I change the LLU_DEBUG("Library function entered with ", Argc, " arguments."); in line 58 into LLU_DEBUG("函数输入了", Argc, "个参数.");, then I call this function. The kernel will crash now: image


dll="D:/test/LibraryLinkUtilities/tests/UnitTests/ErrorReporting/TestSources/build/Debug/LoggerTest.dll";
Get["D:/test/LibraryLinkUtilities/install/share/LibraryLinkUtilities.wl"]

`LLU`InitializePacletLibrary[dll];
LogDemo=LibraryFunctionLoad[dll,"LogDemo",{Integer,Integer,Integer,Integer,Integer},Integer];
LogDemo[1,2,3,4,5]

Juddd avatar Aug 27 '22 13:08 Juddd