Sep-28-2018, 04:31 PM
Why are you using global variables? They're notoriously hard to debug, and often viewed as poor code architecture.
If I inherited that code and had to fix it, I'd start removing the global variables just to wrap my head around how things work. Have you tried removing them? We can potentially help you move away from them, but personally I wouldn't even try to debug them as-is.
If I inherited that code and had to fix it, I'd start removing the global variables just to wrap my head around how things work. Have you tried removing them? We can potentially help you move away from them, but personally I wouldn't even try to debug them as-is.