[fpc-pascal] Coroutines and VirtualAlloc
ryan at thealchemistguild.com
Wed Apr 19 15:45:44 CEST 2017
> On Apr 19, 2017, at 5:37 PM, Karoly Balogh (Charlie/SGR) <charlie at scenergy.dfmk.hu> wrote:
> Your example is simply broken. A few points:
Thanks for the description. Yeah, I assumed the stack would be restored but that isn’t the case apparently.
I think the coroutine implementation in the link below tries to manage the stack frames and restore them but it requires Windows for the VirtualAlloc function and I’m on a Mac. No idea if that code works or not and it looks kind of risky honestly.
More information about the fpc-pascal