Skip to content

How do I close the window other than in direct response to user input? #1506

Closed Answered by jameswilddev
jameswilddev asked this question in Q&A
Discussion options

You must be logged in to vote

Ah so I think I've gotten to the bottom of what's going on here.

DoRender/DoUpdate/etc. all set _inRenderLoop but don't un-set it in the event of an exception being thrown.

That means that the enclosing using statement then disposes the window with the flag still set - which in turn calls reset and raises the exception I've seen here.

Thanks

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Perksey
Comment options

Comment options

You must be logged in to vote
1 reply
@Perksey
Comment options

Answer selected by Perksey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants