Re: Delphi ADO EOleException "An unknown error has occured"



Because there is code somewhere that is..

try
{do some action}
except
on E:EOleException do
begin
{Code to handle the exception}
end;
end;

You will see the exception running the app in the IDE, but not in the
application.

Good luck,
krf

"Aaron Gnome" <gnone@xxxxxxxxx> wrote in message
news:47284b2b@xxxxxxxxxxxxxxxxxxxxxxxxx
So back to my original question: Why does the IDE flag the error but not
the
application?


"Bill Todd" <no@xxxxxx> wrote in message
news:472782ff$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Aaron Gnome wrote:

If you're looking for a real EOleException, the ones generated by
this problem get in the way.

Unfotunately there is no solution to this. As Kevin said, this
exception is raised and trapped in a try/except by design in the ADO
component code. There is no way to tell the debugger to ignore the
exception if it is raised on one module but not in another.

--
Bill Todd (TeamB)



.



Relevant Pages

  • Re: You wanted defensive writing...
    ... Couldn't you have set the debugger to break on all exceptions? ... > I've created an application that loads Caudill's TreeListView as its ... > I commented the line that called the insertion on start-up, ... > The exception caught me unaware, ...
    (microsoft.public.dotnet.csharp.general)
  • Re: You wanted defensive writing...
    ... Couldn't you have set the debugger to break on all exceptions? ... > I've created an application that loads Caudill's TreeListView as its ... > I commented the line that called the insertion on start-up, ... > The exception caught me unaware, ...
    (microsoft.public.dotnet.general)
  • Re: Problem with KITL?
    ... > Enable kernel debugger ... This OK if KdStub stumbling on its own BP. ... Exception in debugger, Addr=0x801AB864 - attempting to recover ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Debugging help - random crashes (1f48cbc1)
    ... I finally got it to crash through the debugger ... but i couldn't see any managed calls in the call stack, ... Unhandled exception at 0x4de7640a in App.exe: 0xC0000005: Access violation ... The calls to ADO and ADOX are all within one function and all variables are ...
    (microsoft.public.vsnet.debugging)
  • Re: Delphi ADO EOleException "An unknown error has occured"
    ... And this code is not in the IDE but is in the application, ... You will see the exception running the app in the IDE, ... component code. ... There is no way to tell the debugger to ignore the ...
    (borland.public.delphi.database.ado)