This issue is reported here: https://github.com/dotnet/corefx/issues/36149.
With NuGet package Microsoft.NETCore.UniversalWindowsPlatform version 6.2.8, we get the following exception:
System.NotSupportedException: Arrays of null-terminated string are not supported
when we run this code:
var log = new EventSource("Observito-Test-Tack");
log.Write("Msg", new EventSourceOptions() { Level = EventLevel.Informational, Opcode = EventOpcode.Info },
new
{
Strings = new[]
{
"Foo",
"Bar"
}
});
With NuGet package Microsoft.NETCore.UniversalWindowsPlatform version 6.1.9 we did not get this exception.
The problem also only appears when someone is listening for events of this EventSource.
- Set breakpoint in exception block of
ArrayRepro.Reproduce
- Run App1 (Local Machine)
- Observe that no exception is thrown
- Run the following from a command-line as administrator (The Guid corresponding to
Observito-Test-Tack
is{53487b38-863e-5b17-bdce-7b706a2e81a6}
):logman start test_trace -p {53487b38-863e-5b17-bdce-7b706a2e81a6} -ets
- Run App1 again
- Notice that an exception is thrown
- Downgrade NuGet package Microsoft.NETCore.UniversalWindowsPlatform to version 6.1.9
- Restart computer
- Repeat the test above
- Notice that now no exception is thrown