tinycoroutine icon indicating copy to clipboard operation
tinycoroutine copied to clipboard

Support for dll/so reloading?

Open ddengster opened this issue 3 years ago • 1 comments

Hi, I use tinycoroutine and live code reloading as a feature for my game, and it crashes whenever I reload the .dll/.so into my game. This happens because the function address belonged in the .dll/.so address space and thus no longer exists, and so crashes when trying to jump back(when returning) to the old address.

I have systems that try to reload the function pointers each time I reload the .dll/.so to help with this problem, and I've tried going through the context list and reseting the entry function pointers. However, I think there are also function addresses on the context's stack, so how should I best handle this?

ddengster avatar Jan 11 '21 13:01 ddengster