Delphi ADO EOleException "An unknown error has occured"
- From: "Aaron Gnome" <gnone@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 10:56:32 -0000
When I run an application, connected to a SQL server database via ADO, in the IDE I get an EOleException, "An unknown error has occured", but when I run the application outside the IDE, there's no problem. Switching off trapping EOleException is not an option as we are trying to trap EOleException errors elsewhere.
I understand that this is due to LookupCache being set (by default) to false, causing the code to call TCustomADODataSet.LocateRecord, via TCustomADODataSet.Lookup and TField.CalcLookupValue.
The application I'm trying to fix is rather large and there are about 150 lookup fields. Setting LookupCache can cause problems for us, so the solution we've come up with is to delete them all together, replacing them with another solution. This is an arduous task, as you can imagine, not one I'm looking forward to. Okay that's my problem.
What I'd like to know is this. Why does the IDE flag the error but not the application? The second question is, has this been fixed in Delphi 2007 (we're using Delphi 2006 and I've seen reports of this going back to Delphi 5, so I'm not optomistic)?
.
- Follow-Ups:
- Re: Delphi ADO EOleException "An unknown error has occured"
- From: Kevin Frevert
- Re: Delphi ADO EOleException "An unknown error has occured"
- Prev by Date: Re: mdb file on internet
- Next by Date: Re: Delphi ADO EOleException "An unknown error has occured"
- Previous by thread: Re: ADO over Vista
- Next by thread: Re: Delphi ADO EOleException "An unknown error has occured"
- Index(es):
Relevant Pages
|