Questions tagged [structured-exception]
30 questions
2
votes
2 answers
What exactly is "application-defined" about UnhandledExceptionFilter?
MSDN describes UnhandledExceptionFilter as follows: "An application-defined function that passes unhandled exceptions to the debugger, if the process is being debugged."
But this function is clearly supplied by the OS, in kernel32.dll according to…

Roman Starkov
- 59,298
- 38
- 251
- 324
2
votes
1 answer
How to implement SEH (Structured Exception Handling) in VB6?
Could someone provide some example on implementing SEH in VB6? Everything I've seen so far is in C++

cfischer
- 24,452
- 37
- 131
- 214
2
votes
2 answers
How can I handle an access violation in Visual Studio C++?
Usually an access violation terminates the program and I cannot catch a Win32 exception using try and catch. Is there a way I can keep my program running, even in case of an access violation? Preferably I would like to handle the exception and show…

Ralph Tandetzky
- 22,780
- 11
- 73
- 120
2
votes
1 answer
The 'get' equivalent of _set_se_translator?
I need to translate structured exceptions manually, using the current translator.
How do I 'get' the value someone has set by _set_se_translator?

user541686
- 205,094
- 128
- 528
- 886
1
vote
1 answer
Best place to call MiniDumpWriteDump() to catch a crash
I have a large-ish Win32 program that I'm maintaining, and I'd like to instrument it to automatically and unconditionally generate a minidump file whenever something bad happens. I can't ask customers to install userdump.exe, and I can't ask them to…

Ted Middleton
- 6,859
- 10
- 51
- 71
1
vote
2 answers
How do I get the module name that caused a structured exception given a _EXCEPTION_POINTERS struct? (win32 C++)
(Win32 platform c++)
Using __try and __finally, how can I get the module name (And address) of the cause for an exception? I call GetExceptionInformation() but from that I am not sure where this information is.
Given other resources online and in…

Tim
- 20,184
- 24
- 117
- 214
1
vote
2 answers
Catch, Handle, then Rethrow Exception?
I ran into an interesting dilemma today. I have a function that handles information and checks for duplicate values, then returns the next number that is not a duplicate. So, I have something like this:
Public Function…

Austin
- 834
- 1
- 10
- 21
0
votes
1 answer
Is Visual C++ SEH available on other OS?
I learned about Visual C++ Structured Exception Handling (SEH) recently. I am considering implementing it, but my code is supposed to be as cross platform as possible. In the future, I'm thinking of porting ny code to Linux, MAC, Android, IOS and…

Christopher Barrios Agosto
- 298
- 1
- 2
- 14
0
votes
2 answers
SEH error reporting
I have a Visual Studio 2008 C++ program where the program is wrapped in a __try/__except block to capture any SEH exceptions. The exception filter creates an error log and gives the user detailed instructions on how to submit a defect report.
Does…

PaulH
- 7,759
- 8
- 66
- 143
0
votes
0 answers
What is allowed after catching an unhandled exception
In order to write a crash dump on windows I am catching unhandled exceptions, all using SetUnhandledExceptionFilter and MiniDumpWriteDump
Now this works (as good as it can) but my question is, once I am in my exception filter function, what am I…

Navie
- 164
- 1
- 8
0
votes
1 answer
How can I tell if the Microsoft C++ code I'm running was compiled with the /EHa switch?
I need to make sure the header I'm using is compiled with the /EHa compiler switch?
How can I do that?

zumalifeguard
- 8,648
- 5
- 43
- 56
0
votes
1 answer
.seh_stackalloc and stack alignment
I am writing some x64 assembly for the GNU assembler. I've been trying to read about the .seh_* directives, but I'm not finding much information about them. The gas docs don't mention them at all.
But as I understand it, if my code might be in the…

David Wohlferd
- 7,110
- 2
- 29
- 56
0
votes
0 answers
Restoring SIMD registers on Windows x64 during unwinding
On Windows x86-64, how are callee-saved SIMD registers restored during unwinding? If one was writing assembly code, how would one ensure that this happened properly?

Demi
- 3,535
- 5
- 29
- 45
-1
votes
1 answer
How to get the benefits of /EHa with /EHsc, on a particular function?
If I know that a particular extern "C" function in my program (say, RaiseException) is the only function that raises SEH exceptions, and I want them converted to C++ exceptions, is there any way for me to "selectively enable" /EHa for that function,…

user541686
- 205,094
- 128
- 528
- 886
-3
votes
2 answers
SEH Eceptions - generating and handling
I want to generate and handle exceptions (SEH).
How can I write a code that will lead to an "illegal instruction"-exception?

j12
- 45
- 5