Skip to content

What "runtime exception will occur"? #13994

Closed

Description

@paulomorgado

> If any code ever attempts to directly access the value-type member of such an object across an application domain, a runtime exception will occur.

What "runtime exception will occur"?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. changed the title [-]What "a runtime exception will occur"?[/-] [+]What "runtime exception will occur"?[/+] on Aug 22, 2019
  2. KalleOlaviNiemitalo commented on Aug 22, 2019

    @KalleOlaviNiemitalo

    Normative text in ECMA-335 6th edition subclause III.4.11 (ldflda - load field address) says this instruction throws System.InvalidOperationException if attempting to load the address of a field of an object in another application domain.

    Informative text in II.14.4 (Pointer types) also mentions that.

  3. paulomorgado commented on Aug 22, 2019

    @paulomorgado
    ContributorAuthor

    Shouldn't this be added to the warning documentation, @KalleOlaviNiemitalo?

  4. KalleOlaviNiemitalo commented on Aug 22, 2019

    @KalleOlaviNiemitalo

    I don't know. The warning itself is perhaps becoming obsolete, because .NET Core does not support remoting; it provides a MarshalByRefObject class for compatibility but you cannot get a transparent proxy that would cause a field access to throw the exception.

  5. KalleOlaviNiemitalo commented on Aug 27, 2019

    @KalleOlaviNiemitalo

    On the other hand, because ECMA-335 stipulates the type of the exception, it is not an implementation detail of .NET Framework and is unlikely to be ever changed, so there should be no problem with documenting it here too.

  6. added and removed
    ⌚ Not Triaged
    on Sep 3, 2019
  7. added this to the Backlog milestone on Sep 3, 2019
  8. BillWagner commented on Sep 3, 2019

    @BillWagner
    Member

    I'm fine adding the details of InvalidOperationException to this warning. I agree that it's unlikely to change.

    I've added this to our backlog, and added the "up for grabs" label, if someone wants to submit a PR.

  9. added
    help wanted
    on Sep 3, 2019
  10. paulomorgado commented on Sep 4, 2019

    @paulomorgado
    ContributorAuthor

    This is the subject of other discussions, but here goes: is this a "runtime" error, a "run time" error or a "run-time" error?

  11. MSDN-WhiteKnight commented on Sep 4, 2019

    @MSDN-WhiteKnight
    Contributor

    Style Guide uses "runtime".

  12. paulomorgado commented on Sep 4, 2019

    @paulomorgado
    ContributorAuthor

    I'm not a native English speaker, but that's just wrong! And with the added cost of making translations also wrong.

  13. mairaw commented on Sep 4, 2019

    @mairaw
    Contributor

    Let's start a thread with the folks from the Microsoft style guide @paulomorgado.

  14. MSDN-WhiteKnight commented on Sep 5, 2019

    @MSDN-WhiteKnight
    Contributor

    I'm not a native English speaker, but that's just wrong! And with the added cost of making translations also wrong.

    Why do you think so? And what exactly is "added cost"? For one, "runtime" when used as adjective seems to be more popular then other variants in internet, software GUI captions, etc. (I could understand "run time" if it were used like "exception happens at run time"). For a second, in russian version of article, this phrase is translated pretty OK. Actually, "run time" might be harder for machine translating, because "run" has over 10 meanings that map into different russian words, but "runtime" has only two or so.

  15. paulomorgado commented on Sep 5, 2019

    @paulomorgado
    ContributorAuthor

    The runtime performs run-time functions during run time.

  16. modified the milestones: Backlog, September 2019 on Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⌚ Not Triageddotnet-csharp/svchelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions