LJDP Posted January 10, 2012 Share Posted January 10, 2012 My scenario is: UniGUI Beta v0.87.0.907, Ibojects Datasets, Window Xp or Server2008, Delphi XE, Apache 2.2. Run in Isapi Mode. In Main Module I have: Only one IbConnection for all forms and 1 IbTransaction+IbQuery+Datasource for login chack. In each form I have one IBtransaction and some IbQuery+DataSource. I get random and unexpected results: Some times work fine. Other times, when I open the same form I get an error: "Access violation at addreess...". . And if I try to reload the original page I get an erro: "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request". Then I need to restart the apache. If close aplication with: UniMainModule.QueryUsu.Close; UniMainModule.Conexion.Connected:=false; UniSession.AddJS('location.href="http://www.paxina.es"'); When reopen obtain this message: Error 500 - Premature end of script headers: program.dll. I know I'm doing something wrong but do not know which. Can anyone help me or show me some manual. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 10, 2012 Administrators Share Posted January 10, 2012 First of all, test your app in stand alone mode and see if errors still happen. What are those "random and unexpected results". Please specify errors messages/codes if there are any. Also look log files for errors. You can also send a test case and we will try to identify the issue. Link to comment Share on other sites More sharing options...
LJDP Posted January 11, 2012 Author Share Posted January 11, 2012 I solved this by creating a datamodule for each form and placing ther the Datasets, datasources and transaction. Now work fine. What is method for close sessión and redirect to an other page? This is well?: UniMainModule.QueryUsu.Close; UniMainModule.Conexion.Connected:=false; UniSession.AddJS('location.href="http://www.paxina.es"'); tnkx. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now