Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UWP samples? #2

Open
JimSEOW opened this issue Jun 22, 2017 · 1 comment
Open

UWP samples? #2

JimSEOW opened this issue Jun 22, 2017 · 1 comment

Comments

@JimSEOW
Copy link

JimSEOW commented Jun 22, 2017

Will these samples work in UWP (Win10 and Win10M)?

@JimSEOW
Copy link
Author

JimSEOW commented Jun 22, 2017

I tried with FaceDetection

The code is fine until exiting GetImageSourceFromStream

        private ImageSource GetImageSourceFromStream(Stream stream)
        {
            this.imageSourceStream = new MemoryStream();
            stream.Seek(0, SeekOrigin.Begin);
            stream.CopyTo(this.imageSourceStream);
            stream.Flush();
                return ImageSource.FromStream(
                () =>
                {
                    this.imageSourceStream.Seek(0, SeekOrigin.Begin);
                    return this.imageSourceStream;
                });
        }

An exception of type 'System.AccessViolationException' occurred in Xamarin.Forms.Platform.UAP.dll and wasn't handled before a managed/native boundary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant