Jump to content

Help to new user for random and unexpected errors


LJDP
 Share

Recommended Posts

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

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

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.

 Share

×
×
  • Create New...