asdlei00 / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Add crExceptionFilter() function again #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I needed a function to be able to wrap my WNDPROC handlers in a __try/__except 
handler so I can trap exceptions, especially in 64-bit versions of my program, 
see 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633573(v=vs.85).aspx 
(the note at the bottom) so I added a crExceptionFilter function to your 
library and was wondering if you were interested in my patch, or if you had an 
idea for how to better write it perhaps.

Yeah I might be doing something wrong, but in my 64-bit WNDPROCs I need to use 
an exception filter or the crash will go to the WER handler. I can actually 
reproduce it in the MFC demo if I say cause a SEH crash in CMFCDemoView::OnDraw 
and then add a manifest as included and make sure the Program Compatibility 
troubleshooter is NOT enabled for the program in Windows 7,

look in HKEY_CURRENT_USER\Software\Microsoft\Windows 
NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted

and

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\AppCompatFlags\Layers

for example.

But it would be great to reintroduce that function again for those cases at 
least if possible.

Thanks,

Karl

Original issue reported on code.google.com by zexspect...@gmail.com on 27 Oct 2012 at 10:31

GoogleCodeExporter commented 9 years ago
Added the crExceptionFilter() function back.

Original comment by olegkriv...@gmail.com on 8 Nov 2012 at 4:47

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1449.

Original comment by zexspect...@gmail.com on 8 Nov 2012 at 4:47