Subject | Re: Exiting gracefully from lost connection error (335544721) |
---|---|
Author | Terry kahler |
Post date | 2005-10-16T01:44:14Z |
Maybe something not so gentle :)
Try replacing Application.Terminate with ExitProcess(0)
Terry
--- In firebird-support@yahoogroups.com, "almfgingras"
<almfgingras@y...> wrote:
Try replacing Application.Terminate with ExitProcess(0)
Terry
--- In firebird-support@yahoogroups.com, "almfgingras"
<almfgingras@y...> wrote:
>
> Thank you for the suggestion Adam. Unfortunately, I get the same
> result with the close command as I do with Application.Terminate.
>
> I think that the error is generated when the database component is
> freed, which is done automatically when its owner is destroyed. At
> that specific time, I can no longer intercept the exception, which
> results in the 'Send error report to Microsoft' dialog.
>
> Philippe
>
> --- In firebird-support@yahoogroups.com, "Adam" <s3057043@y...> wrote:
> >
> > What about something more gentle, like a Close; instead of
> > Application.Terminate;
> >
> > You will probably find some component is being freed and then
> > receiving some notification. Maybe to do with the order the
> connection
> > and transaction components are being freed.
> >
> > Adam