UniConnection->Disconnect() fails

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

UniConnection->Disconnect() fails

Post by sandy771 » Sun 17 Mar 2013 13:15

When I try and close a connection on an UniConnection that has multiple UniTabel and UniQuery's connected to it I get an exception

using UniConnection->Disconnect()

I get:

"MyTable Cannot perform this operation on a closed dataset"

This used to work OK in my application, but fails now - any ideas what could be causing this?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UniConnection->Disconnect() fails

Post by AlexP » Mon 18 Mar 2013 11:28

Hello,

The given error can occur in different cases, for example, when attempting to edit DataSet on the closed connection. Please check that you are not attempting to work with DataSets after closing the connection.

Post Reply