This project is read-only.
1
Vote

Race condition with Minimize/Maximize animation and Verification

description

My first test was to maximize a test window but I received verification error that Maximized is not Normal. I didn't get the error while tracing through the source so it seems the actual state passed to the verifier in WindowPatternHelper.SetVisualState is read before the window has finished it's animation to maximize. I was able to verifiy this by putting a call to Thread.sleep(1000) before the call to Verify to make the issue go away.
 
My test code running on 64 -bit windows 7 machine :
 
    Dim processBook As New ProdWindow("TestWindow")
    processBook.Activate()
    processBook.Maximize()

comments

hroark wrote Mar 6, 2012 at 2:27 PM

Sorry about the delay in getting back. I'll get right on it

wrote Mar 6, 2012 at 3:24 PM

wrote Feb 2, 2013 at 3:56 AM