Skip to content

Fix bug preventing the app to launch from the start menu when compiled in debug#1162

Merged
rudyhuyn merged 1 commit into
microsoft:masterfrom
rudyhuyn:FixAssertDebug
Apr 10, 2020
Merged

Fix bug preventing the app to launch from the start menu when compiled in debug#1162
rudyhuyn merged 1 commit into
microsoft:masterfrom
rudyhuyn:FixAssertDebug

Conversation

@rudyhuyn
Copy link
Copy Markdown
Collaborator

@rudyhuyn rudyhuyn commented Apr 10, 2020

Also remove the Assert at launch when debugging with VS.

image

Reason

The lock in LocalizationService::GetInstance was blocking the launch of the app because called too early during the initialization of the app.

This call was made by the static map GraphingNumPad:buttonOutput initialized during the launch, even when Graphing Calculator wasn't the selected mode.

Description of the changes:

  • load the map just-in-time, only when users will click on one of the button

Impact

It should improve the performance of the application launch.

How changes were validated:

  • manually

@rudyhuyn rudyhuyn requested a review from joseartrivera April 10, 2020 08:05
Copy link
Copy Markdown
Contributor

@joseartrivera joseartrivera left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@rudyhuyn rudyhuyn merged commit 0318c8f into microsoft:master Apr 10, 2020
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

Successfully merging this pull request may close these issues.

2 participants