04-21-2023, 07:07 PM
This is described too generally. What does the subroutine do? Doesn't it stay running after you leave it? Does it change the variables somehow? Is it a SUB? If so, do you know that the parameters in parentheses (function arguments) change and return changed if SUB changes them? Are you creating virtual screens there and not freeing memory? Or do you work with fonts? Or with an eight-bit and a 32-bit screen? There are too many questions, I can try to advise you, but you need to be more specific.