Ok turns out there was no stack over flow error ... it was socket read error!
Testing now shows all good.. need to clean up the code now
Changed the method this program stores and uses errors