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

NotificationCenter object is being created multiple times using VIPRE on Windows #21

Open
jholub15 opened this issue Mar 3, 2020 · 0 comments
Labels

Comments

@jholub15
Copy link
Contributor

jholub15 commented Mar 3, 2020

When attempting to use the VIPRE simple volume viewer examples on Windows, there is an issue when using NotificationCenter to update the rendering. Specifically, hitting the 'v' key for changing the view. Notification Center seems to be creating multiple objects and when this key is pressed, the one it is using does not have any registered values. This issue is not present on a Mac build, so it is assumed this has something to do with the Visual Studio compiler (2015) being used.

The multiple copies can be seen by putting a breakpoint in the NotificationCenter constructor and running the VIPRE simple volume viewer examples. The constructor gets called twice on launch and then if you hit the 'c' button to change the coloring scheme, it gets called again, and only once more. However, the coloring one works after this. So it seems almost like a scope issue where a new copy is being created if NC is being called from different objects.

I have tried several different Singleton implementations to fix this and the constructor still continue to be called multiple times. This should not be a threading issue with a race condition as I can trigger a new constructor after the application is up and running by hitting the 'c' button for changing the color.

@jholub15 jholub15 added the bug label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant