stack over flow error

Hi all
i developed a usb2serial driver and installed on test PC. while installation
we have choosen the ports class …installation was done and it is displaying usb
port as a com port for PC (virtual COM) as we intended…while running the driver from application if we click on connect to COM port button it is giving the error as stack over flow. can any one tell me when this error will occur n how to resolve it