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



And this code is not in the IDE but is in the application, or the other way around?


"Kevin Frevert" <kevin@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:4728720f$1@xxxxxxxxxxxxxxxxxxxxxxxxx
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: Delphi 2005 update 1 is out!
    ... Delphi 2005 Update 1 Fixes ... When importing an assembly if the types Pointer or Exception are used ... bdpDataAdapter can cause the IDE to lose all key stroke events until ... Using a remote data module may cause an Access Violation. ...
    (borland.public.delphi.non-technical)
  • Re: Delphi Update one... are you serious?
    ... Delphi 2005 Update 1 Fixes ... When importing an assembly if the types Pointer or Exception are used ... bdpDataAdapter can cause the IDE to lose all key stroke events until ... Using a remote data module may cause an Access Violation. ...
    (borland.public.delphi.non-technical)
  • Re: Jit-Debugging (again)
    ... >> I do *not* want to see the dialog when debugging in the IDE. ... I'd like the IDE to handle the exception and stop at ... The debugger should stop at the line throwing ... Set the timer's Enabled property = True. ...
    (microsoft.public.vsnet.debugging)
  • Re: centralize exception handling without try catch blocks in c#.
    ... it's your opinion and you are entitled to it. ... >> Second, using a UE handler does not really handle the exception, it just ... >>> file outside the IDE. ... >>> handling or i need two startup classes to handle Exception.One for ...
    (microsoft.public.dotnet.general)
  • Re: Exception Handling difference between Design-Time and Run-Time
    ... About the bug. ... I'm not saying either way whether its the IDE thats at fault ... Instead I use global Exception handlers, as they largely do what I ... > Public Shared Sub Main ...
    (microsoft.public.dotnet.languages.vb)