We help IT Professionals succeed at work.
Get Started

Object was open using ADO and Delphi 2007

Kifah Najem
Kifah Najem asked
on
968 Views
Last Modified: 2016-01-04
Hi,
I build an application using delphi 2007, and I am using ADO as database connection object.
in the application there is about 200 ADODataset\ADOQuery all those are connected to one ADOConnection and they exists in deferent Forms. The application can work with MSSQL server or Oracle.
The application works perfectly, but some times specially when I am using Oracle as backend, I am receiving an error "Object was open"
This error raise sometimes from deferent places. for example I open customer form, and I work on it, and it is perfect, but some times it raise the error "Object was open", If close the form and I open it again it works.

So the error happens specially when the application is connected to oracle database.
and it happens suddenly in deferent forms, and there is no way to follow certain steps to raise the error.
Please a solution

Note: I do not how to give a point on this questions
Comment
Watch Question
Software architect
CERTIFIED EXPERT
Top Expert 2012
Commented:
This problem has been solved!
Unlock 1 Answer and 33 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE