ORA-12571: TNS packet writer failure

Hi everyone, ive developed a fleet tracking software using VB6 and Oracle 9i. Ill give u a brief desc of how the software works. Each vehicle is fitted with a firm wear which gives its position every 5 minutes to our main server. The server then sends this information to the customers via their username and password. The software then picks up this information, places the vehicle on the map and then stores the details in the oracle database which is always held locally on the PC. Thats the gist of it. The problem im having is anytime the cable that connects the PC to the internet is removed, the software crashes with the above error message. Ive stepped throught the code and it errors when i try to create a recordset using data from the oracle database while the cable has been disconnected. But if i try runing the same SQL statement in SQLplus while the same cable has been disconnected, it works fine. Any ideas as to why this is happening?  
oagunbiadeAsked:
Who is Participating?
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.

NievergeltSenior SW DevCommented:
If you catch the error and retry the recordset creation after the cable is connected, does the error still occur?
Could you post the section of code in question?
0

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
oagunbiadeAuthor Commented:
If i retry the recordset creation after the cable is connected, the error still occurs. But ive found a way round this. Because the error generates a unique code, i recreate the connection any time the error is generated and this works fine. Thanks anyways.
0
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
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.