A question like this makes me think that you need to do a redesign of your overall program architecture, I believe this is an "XY Problem". It also seems that this is a continuation of
this thread.
If you would like any good advice on what to do instead of what you are doing, you'll need to explain what exactly you are trying to do (without mentioning specific code) i.e. the overall design of your program.
At first glance, I would have to say it will probably be related to multiforwards or something similar.
__________________