Pancary Posted August 31, 2017 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
erich.wanker Posted August 31, 2017 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
Jean-Marc Kiener Posted August 31, 2017 Posted August 31, 2017 Try... TUniServerModule - AutoCoinitialize - True 1 Quote
Pancary Posted August 31, 2017 Author 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
Administrators Farshad Mohajeri Posted August 31, 2017 Administrators Posted August 31, 2017 Please specify your unigui edition and version. Sent from my SM-N900 using Tapatalk Quote
Administrators Farshad Mohajeri Posted August 31, 2017 Administrators Posted August 31, 2017 Trial 0.99.50.1187 This version is no longer supported. Quote
Pancary Posted August 31, 2017 Author 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
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.