Default Frequent connecting and disconnecting of Wifi and Edge Data

I am facing strange problem of frequent connecting and disconnecting of Wifi and data networks. Whenever I open some application the edge network disappears and after some time reappears. The same is with the Wifi. I have flashed the latest Gennext Rom after which this problem is occurring. Any body can help?