Win32Exception when calling Window.PointToScreen on 64-bit Windows - by Sebastian Krysmanski

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 677046 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/27/2011 6:51:12 AM
Access Restriction Public

Description

Calling "Window.PointToScreen()" from an event handler that is called while the Window is closing (eg. "Window.MouseLeave") "throws" a Win32Exception on a 64-bit Windows system. The problem there is that somehow the call stack gets screwed so that this exception can't even be caught. Note that this is no problem on 32-bit Windows system; here an InvalidOperationException will be thrown and the call stack remains intact.

For more information, see here: http://manski.net/2011/06/27/wpf-crashes-on-exit/
Sign in to post a comment.
Posted by Dwayne [MSFT] on 7/5/2011 at 4:32 PM
See extensive exception handling details here:
http://msdn.microsoft.com/en-us/library/ms633573(VS.85).aspx
Posted by Microsoft on 7/5/2011 at 4:29 PM
Thank you very much for your feedback.

Note: Exceptions on 64-bit Windows are not propagated from a WindowProc. Perhaps this explains part of your issue.

We have no plans to fix this issue. Thanks!

WPF Team
Posted by MS-Moderator08 [Feedback Moderator] on 6/27/2011 at 7:52 PM
Thank you for reporting the issue.
We are routing 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 MS-Moderator01 on 6/27/2011 at 7:48 AM
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)