Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCM breaks when exiting taskfuncs #296

Open
eitherys opened this issue Jan 12, 2023 · 0 comments
Open

TCM breaks when exiting taskfuncs #296

eitherys opened this issue Jan 12, 2023 · 0 comments
Labels

Comments

@eitherys
Copy link
Collaborator

If an exit is called inside a taskfunc, the "epilogue" statements of the module (which reset the variables like sp, fp) never run, so the TCM memory pointers will start malfunctioning and hitting nonsense indices like negative numbers.

Pictured here from @mkruselj :

image

I feel like to fix this, if an exit is found in the taskfunc, these statements should always precede the exit as well, as many occurrences of exit are found.

@mkruselj mkruselj added the Bug label Jan 13, 2023
@mkruselj mkruselj changed the title TCM Breaks When Exiting TaskFuncs TCM breaks when exiting taskfuncs Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants