Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

BlittableStructPtrMarshaller not implemented #4466

Open
sergiy-k opened this issue Sep 7, 2017 · 0 comments
Open

BlittableStructPtrMarshaller not implemented #4466

sergiy-k opened this issue Sep 7, 2017 · 0 comments
Labels

Comments

@sergiy-k
Copy link
Contributor

sergiy-k commented Sep 7, 2017

Repro:

        try
        {
            string path = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
            Console.WriteLine("Pass: folder path '{0}'", path);
        }
        catch (Exception e)
        {
            Console.WriteLine("Failure: {0}", e.ToString());
        }

It fails with the following exception:

System.Exception: Method '[System.Runtime.Extensions]Shell32.SHGetKnownFolderPath' requires non-trivial marshalling that is not yet supported by this compiler.
@shrah shrah added the Interop label Sep 7, 2017
@jkotas jkotas changed the title Environment.GetFolderPath fails due to a missing interop feature BlittableStructPtrMarshaller not implemented Sep 10, 2017
jkotas added a commit that referenced this issue Sep 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants