Jump to content

Data Access error


Pancary

Recommended Posts

I have a UniGUI application that works perfectly with the code below, on my machine, but on the server it returns access violation error. A test using VCL works normally, both on my machine and on the server, but UniGUI I have this error.

 

procedure TMainForm.bt1Click(Sender: TObject); begin Dm1.sqlListaPrincipal.Close; Dm1.cdsListaPrincipal.Close; Dm1.sqlListaPrincipal.Open; Dm1.cdsListaPrincipal.Open; end;

I have a UniGUI application that works perfectly with the code below, on my machine, but on the server it returns access violation error. A test using VCL works normally, both on my machine and on the server, but UniGUI I have this error.

Link to comment
Share on other sites

Hi,

with extrem less information - its impossible to give a answer

 

 

What Database do you use

What SQL Statement do you use

and so on...

 

 

And your posting is unreadable ;-)

 

Better:

procedure TMainForm.bt1Click(Sender: TObject); 
begin 
Dm1.sqlListaPrincipal.Close; 
Dm1.cdsListaPrincipal.Close; 

Dm1.sqlListaPrincipal.Open; 
Dm1.cdsListaPrincipal.Open; 

end;
Link to comment
Share on other sites

Thanks, but it did not work. Scenario: Oracle 10g, datamodule, TFDQuery, TDataSetProvider, TClientDataSet, TDataSource, TUniDBGrid. Sql, Any sql statement does not work. The access violation error occurs when you try to open the TClientDataSet, as an object not created. The strange thing is that as VCL works normal and on my machine too. The problem is only on the server.

Thanks, but it did not work. Scenario: Oracle 10g, datamodule, TFDQuery, TDataSetProvider, TClientDataSet, TDataSource, TUniDBGrid. Sql, Any sql statement does not work. The access violation error occurs when you try to open the TClientDataSet, as an object not created. The strange thing is that as VCL works normal and on my machine too. The problem is only on the server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...