a simple scenario trigger an assert in Nuclex.UserInterface Demo

Aug 9, 2011 at 6:58 AM
Edited Aug 9, 2011 at 8:19 AM

I found a simple scenario to trigger an assert in Nuclex.UserInterface demo (Demo Dialog) and make the application crashes

Repro :

1. place the mouse cursor on the background area  (the grey area)

2. hold down the Left Click

3. press a character button like 's' , or 'd'

 

for now i dunno how to fix this

 

by the way, i'm a junior developer :]

I might misunderstand something

Coordinator
Aug 9, 2011 at 10:38 AM

Thanks for reporting this!

It's a bug in the screen class: normally a control can tell its owner when it's not interested in a keyPress and will then not hear anything about the key. But if the control is considered active by holding the mouse button down on it, it would be force-fed the keyPress (which it rejects) and later the associated keyRelease (which it shouldn't receive, having rejected the keyRelease, thus the assertion).

I fixed the issue in the SVN trunk.

If you're using a binary release, you can pick up updated binaries from here: https://devel.nuclex.org/jenkins/

Aug 9, 2011 at 10:48 AM

Nice! for the Url