Re: own stackframe -> prob with exception handling
- From: olk <oliver.kowalke@xxxxxx>
- Date: Sat, 13 Mar 2010 19:20:33 +0100
Jochen Kalmbach [MVP] schrieb:
Hi olk!
I've some code which creates its own stackframe and does some kine of context switching (using inline assembler).
Why not switch the whole stack?
The code works similiar to ucotnext -> makecontext()/swapcontext() etc.
What it doesis: it creates an stack on an range in the memory. It saves the registers. Such context objects can bes sappwed. So it does swap the whole stack (assigned to it).
Or: Why not use CreateFiber? and SwitchToFiber?Has some problems. for instance you can not move fibers between threads. You have the ugly ConvertThreadToFiber()/ConvertFiberToThread() stuff etc.
I need to know how to get the surounding exception handler recognized.
.
- References:
- own stackframe -> prob with exception handling
- From: olk
- Re: own stackframe -> prob with exception handling
- From: Jochen Kalmbach [MVP]
- own stackframe -> prob with exception handling
- Prev by Date: Re: own stackframe -> prob with exception handling
- Next by Date: Re: own stackframe -> prob with exception handling
- Previous by thread: Re: own stackframe -> prob with exception handling
- Next by thread: Re: own stackframe -> prob with exception handling
- Index(es):
Relevant Pages
|