Getting chart symbol and chart period

 
Is there any way to get the chart symbol and chart period by using chart ID without using ChartSymbol() and ChartPeriod()?
 
Chart is hanging when I cal ChartSymbol() in mt5. It keep working fine but then suddenly start hanging and take 3000+ ms and return null string while chart id is still valid.
 
Kashif Javed:
Chart is hanging when I cal ChartSymbol() in mt5. It keep working fine but then suddenly start hanging and take 3000+ ms and return null string while chart id is still valid.
Show your code and how to reproduce it.