You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In .NET 6, if the number of filters is zero, it will cause the program to crash. However, in the .NET Framework, this will not happen
To Reproduce
Occurs immediately when the following code is called
Calling Code
var Request = new Steamworks.ServerList.Internet();
Request.OnChanges += () =>
{
if ( Request.Responsive.Count == 0 )
return;
foreach ( var s in Request.Responsive )
{
Console.WriteLine(s.Name);
}
Request.Responsive.Clear();
};
Request.RunQueryAsync( 30 );
Expected behavior
no happen.
Desktop (please complete the following information):
OS: windows11
Additional context
his error is triggered by the ISteamMatchmakingServers.RequestInternetServerList() function. It is suspected that there may have been changes in the new version of C# ref struct. After limiting the number of MatchMakingKeyValuePair[] ppchFilters to at least one, this issue no longer occurs
Describe the bug
In .NET 6, if the number of filters is zero, it will cause the program to crash. However, in the .NET Framework, this will not happen
To Reproduce
Occurs immediately when the following code is called
Calling Code
Expected behavior
no happen.
Desktop (please complete the following information):
Additional context
his error is triggered by the ISteamMatchmakingServers.RequestInternetServerList() function. It is suspected that there may have been changes in the new version of C# ref struct. After limiting the number of MatchMakingKeyValuePair[] ppchFilters to at least one, this issue no longer occurs
Try Fix Code
The text was updated successfully, but these errors were encountered: