Using Plcnext 2022.9 the following code is successfully compiled with visual studio and the generated pcwlx can be imported into plcnext engineer but building fail with error E3004 : evaluation stack corrupted
catch (IOException ioex) when (ioex.InnerException is SocketException)
{
Console.WriteLine("QueryDataFromClimats IOException: SocketException errorcode {0}", ((SocketException)ioex.InnerException).ErrorCode);
}
Code not using when filter is successfully compiled by plcnext engineer.
catch (IOException ioex)// when (ioex.InnerException is SocketException)
{
if(ioex.InnerException is SocketException)
{
Console.WriteLine("QueryDataFromClimats IOException: SocketException errorcode {0}", ((SocketException)ioex.InnerException).ErrorCode);
}
Regards Alexandre