EndDialog in OnInitDialog reopen Dialog - by CProbst1

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 763947 Comments
Status Closed Workarounds
Type Bug Repros 3
Opened 9/20/2012 10:52:31 PM
Access Restriction Public


Calling EndDialog in OnInitDialog - which documentation explicitly permits - is causing the dialog to open a second time. Changed behaviour in MFC 110.
Sign in to post a comment.
Posted by Microsoft on 4/15/2013 at 1:28 PM
Good news. We are now planning to have a fix for this in VS Update 3. This VSUpdate fix will not be the same as the fix for the next VS version, because that fix would break binary compatibility. There is also a relatively simple workaround that may be an option for you, if you can modify all of your dialog class code, or if your dialogs share a comman base that can be modified. I will share that workaround on the "Workarounds" page.
Posted by Microsoft on 12/4/2012 at 5:19 PM
The fix went in for the next major visual studio release (not part of the next VS2012 updates.

Posted by Sean Hawkins on 12/3/2012 at 5:35 PM
This was marked as fixed on 09/24/2012, however the VS2012 Update 1 did not include this fix. How does one get the fix for this?
Posted by Microsoft on 9/24/2012 at 3:24 AM
Thanks for your update. We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by CProbst1 on 9/21/2012 at 3:48 AM
Run the sample and open "About" Dialog in system menu. You will get two messages where only should be one.
Posted by Microsoft on 9/21/2012 at 3:37 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 9/20/2012 at 11:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)