RS232 Com port stuck open

I have a program (written in Agilent Vee 8.0) which uses an RS232 Com port. Ocasionally it crashes and leaves the port stuck open and the only way to recouvour is to restart the PC. Is there a way of resetting the com port without resetting my PC?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you are using UART mode you need to check the FIFO butter enable or not 
to check this.
start > settings > control panel > system > hardware tab > device manager > ports > communication port > properties > port settings > advanced 
first un check the fifo buffter and test you program.
also you can set the prority for receive and transmit buffer on same menu according to you program.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

Yes, it does state Windows 3.1 on it, but it works fine under XP. Simply launch the app, and it will ask you to forcibly close the port.

(not sure if thats a good link, might need to google it)
NicklebackAuthor Commented:
These both seem to work so Im splitting the points. (Thanks guys your strate A(s) once again. )
Im not shure which one is the best as the program only crashes once in a while and it will take me a month to get any real data.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.