tinycoroutine
tinycoroutine copied to clipboard
Support for dll/so reloading?
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?