Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Advice on tracking down: Cannot perform this operation on a closed dataset
Mon, Aug 20 2007 1:48 AMPermanent Link

Dave
Hi

I am getting an intermittent error on shutdown of my application:

Cannot perform this operation on a closed dataset


You'd think an error like this would be easy to debug but i've having a hell of a time with it.  The IDE doesn't break on exception when it occurs.  It seems to happen after
my form has been destroyed and my debug logger (TJvDebugHandler) doesn't catch it.


I'd like to hear some suggestions for debugging it, or ideas on what could trigger such an error on shutdown.

Thanks IA

d
Mon, Aug 20 2007 4:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dave,

<< I'd like to hear some suggestions for debugging it, or ideas on what
could trigger such an error on shutdown. >>

It's usually a case of one form trying to perform an operation on a data
component that resides another form or data module that has already been
closed but not destroyed.

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Aug 20 2007 8:15 PMPermanent Link

"Adam H."
Hi Dave,

You could try Eurekalog. (Comes with a trial version). It has a stack trace,
and shows you the various modules, procedures and line positions that lead
to that exception.

Cheers

Adam.

> I am getting an intermittent error on shutdown of my application:
>
> Cannot perform this operation on a closed dataset
>
>
> You'd think an error like this would be easy to debug but i've having a
> hell of a time with it.  The IDE doesn't break on exception when it
> occurs.  It seems to happen after
> my form has been destroyed and my debug logger (TJvDebugHandler) doesn't
> catch it.
>
>
> I'd like to hear some suggestions for debugging it, or ideas on what could
> trigger such an error on shutdown.
>
> Thanks IA
>
> d
>

Tue, Aug 21 2007 1:21 AMPermanent Link

Dave
Thanks for the feedback, guys.

It's one of those things...  I could kick myself now.  I had checked all forms that could possibly be open at shutdown, but had neglected to check units.  One was doing
something silly in Finalization.  Naughty, naughty!

d

Image