Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use the BinaryFormatter only on .NET FW and Mono#2470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
filmor wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
fromfix-binaryformatter-usage

Conversation

filmor
Copy link
Member

@filmorfilmor commentedOct 1, 2024
edited
Loading

Shouldfix#2469

@filmorfilmorforce-pushed thefix-binaryformatter-usage branch fromb696f83 to4ccde5bCompareOctober 27, 2024 12:46
Copy link
Member

@lostmsulostmsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Look good, but I'd like NITs to be fixed and the commit squashed

@@ -33,6 +33,10 @@ static T SerializationRoundtrip<T>(T item)
{
using var buf = new MemoryStream();
var formatter = RuntimeData.CreateFormatter();

if (formatter == null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It might be a good idea to make the whole test class[Obsolete] to prevent warnings

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Well, for the time being, we still by default support this functionality on .NET FW and Mono. Which warning are you referring to?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Obsolete code warning that comes from usingBinaryFormatter. You can see it on GitHub review page.

@filmorfilmorforce-pushed thefix-binaryformatter-usage branch from4ccde5b to1c0afe6CompareOctober 28, 2024 07:52
@filmor
Copy link
MemberAuthor

Well, without the stashing,Shutdown+Initialize cycles are broken. This is going to be a lot more work than anticipated.

@lostmsu
Copy link
Member

lostmsu commentedOct 28, 2024
edited
Loading

We could consider dropping the support for Shutdown/Initialize for .NET Core+. I don't know if there are any good scenarios for it. It is much safer to spawn a new process.

@filmorfilmorforce-pushed thefix-binaryformatter-usage branch from958dd30 to3cd685eCompareFebruary 20, 2025 16:29
@@ -124,6 +132,12 @@ internal static void RestoreRuntimeData()

private static void RestoreRuntimeDataImpl()
{
IFormatter? formatter = CreateFormatter();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think coming here should be an error.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lostmsulostmsulostmsu requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

BinaryFormatter deprecation issue while using PythonEngine.Shutdown()
2 participants
@filmor@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp