Hello.
Can you give me your source code or your github link ? I have 5 year exp about C/C+/C#, i think i can solve your problem, i'm just beginning as freelancer, i will try my best to help you, thank for your reading, i will try first, and if you please, then we have award later, thank you again.
Quang Huy