Skip to content

Calling AppInstance.GetInstances() before calling AppInstance.GetCurrent() causes a read access violation. #1200

@jlaanstra

Description

@jlaanstra

Describe the bug
Calling AppInstance.GetInstances() before calling AppInstance.GetCurrent() causes a read access violation.

Steps to reproduce the bug

  1. Create a new Reunion app.
  2. in main call AppInstance.GetInstances() before calling AppInstance.GetCurrent().

Expected behavior
No crash.

Version Info
Preview

Additional info
Exception thrown: read access violation.
winrt::Microsoft::Windows::AppLifecycle::implementation::AppInstance::s_current.m_ptr was nullptr.

Metadata

Metadata

Assignees

Labels

area-LifecycleTopics related to the AppLifecycle, providing lifecycle management for WindowsAppSDK appsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions