Pancary Posted August 31, 2017 Share Posted August 31, 2017 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. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted August 31, 2017 Share Posted August 31, 2017 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; Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted August 31, 2017 Share Posted August 31, 2017 Try... TUniServerModule - AutoCoinitialize - True 1 Quote Link to comment Share on other sites More sharing options...
Pancary Posted August 31, 2017 Author Share Posted August 31, 2017 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. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 31, 2017 Administrators Share Posted August 31, 2017 Please specify your unigui edition and version. Sent from my SM-N900 using Tapatalk Quote Link to comment Share on other sites More sharing options...
Pancary Posted August 31, 2017 Author Share Posted August 31, 2017 Trial 0.99.50.1187 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 31, 2017 Administrators Share Posted August 31, 2017 Trial 0.99.50.1187 This version is no longer supported. Quote Link to comment Share on other sites More sharing options...
Pancary Posted August 31, 2017 Author Share Posted August 31, 2017 I found the problem. It was necessary to declare MidasLib in uses. Thanks. I found the problem. It was necessary to declare MidasLib in uses Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.