The object at dereference depth 1 is being used before it was constructed/allocated

Can any one guide me where I am doing mistage

In reply to tinkumistry:

You do not set no_of_agnt in your AHB_env where you are creating the config object,

In reply to tinkumistry:

Please look here. It’s working now

There was a lot of confusion in your environment.