seh Questions

2

Solved

I am catching an exception using Win32 SEH: try { // illegal operation that causes access violation } __except( seh_filter_func(GetExceptionInformation()) ) { // abort } where the filter funct...
Pelham asked 6/11, 2014 at 21:48

3

Solved

Is it possible to catch error inside WindowProc callback? try / catch doesnt work. Looks like __try __except and also hardware exception (AV, for example) doesnt work also. Update: I figured ou...
Allonym asked 1/2, 2013 at 9:1

4

Solved

I'm reluctantly having to deal with Win32 structured exceptions again. I'm trying to generate a string describing an exception. Most of it is straightforward, but I'm stuck on something basic: how ...
Handshake asked 27/10, 2011 at 11:27

2

Solved

The 64-bit Windows ABI defines a generalized exception handling mechanism, which I believe is shared across C++ exceptions and structured exceptions available even in other languages such as C. If...
Phyfe asked 26/7, 2017 at 17:6

0

The x86-64 Windows ABI has the concept of a legitimate epilog, which is a special type of function epilog that can be simulated during exception handling in order to restore the callers context1 as...
Barranquilla asked 26/7, 2017 at 20:0

0

What happens when a fault occurs during the SEH stack unwinding on Windows? For example, if the unwind info is corrupted or incorrect, or the stack has been overwritten with invalid data, and a GP ...
Sensualist asked 26/7, 2017 at 18:47

1

Solved

Good Morning! Edit: This is not a duplicate as it specifically pertains to SEH, not code-level thrown exceptions. I'm using SEH to catch hardware errors thrown by some unreliable libraries. I'd l...
Earleneearley asked 5/5, 2017 at 13:7

1

Solved

I am reading this article about the SEH on Windows. and here is the source code of myseh.cpp I debugged myseh.cpp. I set 2 breakpoints at printf("Hello from an exception handler\n"); at line:24 an...
Hovercraft asked 7/1, 2017 at 9:28

1

In the following code, the function foo calls itself recursively once. The inner call causes an access violation to be raised. The outer call catches the exception. #include <windows.h> #inc...
Q asked 27/9, 2015 at 8:11

1

Lately, I've been attempting to get SEH exception handling to work in LLVM (3.8.1) together with MCJIT. So far without any luck. From what I understand from the website ( http://llvm.org/docs/Exce...
Tokenism asked 30/8, 2016 at 10:10

2

Solved

For Windows 8 application certification, there are (among other) these requirements: 3.2 Your app must be compiled using the /SafeSEH flag to ensure safe exceptions handling 3.3 Your app must be ...
Errolerroll asked 25/6, 2012 at 20:0

3

Solved

I've been trying to use programmatic data breakpoints, à la the CBreakpoint example, by using SetThreadContext to set the debug register directly. Most references that I can find indicate the Visua...
Biparous asked 22/8, 2012 at 15:44

1

Solved

I'm examining hardware and software exceptions in visual studio 2013. I know that I can catch hardware exceptions by setting 'Enable C++ Exceptions' option to /EHa (Yes with SEH Exceptions). I'm tr...
Mathia asked 19/4, 2015 at 22:23

2

Solved

I am currently working on a Unit Testing framework where users can create Test Cases and register with the framework. I would also like to ensure that if any of the User Test Code causes a Crash, ...
Leonie asked 14/8, 2014 at 9:57

0

In windows SEH data, there exists a facility to define for a given RUNTIME_FUNCTION some pseudo-operations which describe its effect on the stack. They are defined here in the documentation for UNW...
Steelhead asked 20/2, 2014 at 2:52

1

I am reading about Structured Exception Handling in C. Here is an example code which does not work as expected: This code is taken from here: http://msdn.microsoft.com/en-us/library/ha52ak6a.aspx...
Caldera asked 1/11, 2013 at 7:8

5

Solved

The following code will give a hard fail when run under Windows 7 32bit: void CTestView::OnDraw(CDC* /*pDC*/) { *(int*)0 = 0; // Crash CTestDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); if (...
Missal asked 13/4, 2010 at 16:46

1

Solved

Both node console and Qt5's V8-based QJSEngine can be crashed by the following code: a = []; for (;;) { a.push("hello"); } node's output before crash: FATAL ERROR: JS Allocation failed - proces...
Blowup asked 28/5, 2013 at 16:51

1

Solved

In a background thread, my application regularly examines a network folder (UNC Path) for application updates. It reads out the assembly version of the file, like so: Try newVers = System.Reflect...
Vodka asked 8/5, 2013 at 9:4

4

Hello and excuse me again I am reading "Detecting Multiprocessor Topology in IA-32 Architecture" from Intel. I was recoding the example. However I read this sentences __try and __except in the cod...
Schutzstaffel asked 20/9, 2012 at 13:2

1

Solved

My project has suddenly stopped working. I am using local storage and when I try to initialise the role environment, it says: "Microsoft.WindowsAzure.ServiceRuntime Error: 102 : Role environment...
Puffery asked 24/4, 2012 at 16:51

1

Solved

I'm trying to reverse-engineer the Visual C++ 2008 SEH handler named __CxxFrameHandler3 to provide an implementation which can delegate the result to (the older version of) __CxxFrameHandler in msv...
Horology asked 3/2, 2012 at 2:41

2

Solved

I have third-party static library built with Enable C++ Exceptions set to No (/EH flag not specified). What are the consequences to calling into it from code built with C++ exceptions enabled (/EHa...
Canotas asked 29/6, 2011 at 16:45

3

Solved

I am trying to set SEH without using try except (This is for my own personal knowledge to get a better idea on how SEH works) The following code doesn't work type TSeh = packed record OldSeh:DW...
Reorganization asked 9/8, 2011 at 9:46

3

Solved

I have a function in which I call getaddrinfo() to get an sockaddr* which targets memory is allocated by the system. As many may know, you need to call freeaddrinfo() to free the memory allocated b...
Ephraimite asked 15/7, 2011 at 14:52

© 2022 - 2024 — McMap. All rights reserved.