RTC Forums

Subscription => Support => Topic started by: Filip D. on May 04, 2018, 12:52:32 PM



Title: Clientdataset exception thrown (Cannot perform this operation on closed dataset)
Post by: Filip D. on May 04, 2018, 12:52:32 PM
This error occurs when i run the .exe on a pc where Delphi is not installed.
Same compiled code runs perfect on my developent machines.

This error is kicked off when assigning a returned dataset on the client to the rtcClientdataset
Obviously i'm missing something, is there a file to deploy, what am i doing wrong ?

   
   try
      rtcClientDataset_Stars.asDataSet:=Result.asDataSet;
      except
    on E : Exception do
     begin
       ShowMessage('Exception class name = '+E.ClassName);
       ShowMessage('Exception message = '+E.Message);
     end;


Title: Re: Clientdataset exception thrown (Cannot perform this operation on closed dataset)
Post by: D.Tkalcec (RTC) on May 04, 2018, 01:45:00 PM
If you are having problems using the "TRtcClientDataSet" component (extends the "TClientDataSet" component from Delphi) on machines which do NOT have Delphi installed, you might be missing some prerequisites. Check this EDN article for more info: Deploying Applications that use ClientDataSets (http://edn.embarcadero.com/article/29297)


Title: Re: Clientdataset exception thrown (Cannot perform this operation on closed dataset)
Post by: Filip D. on May 04, 2018, 07:31:22 PM
Hi Thx for the quick reply :-)