Jump to content

Recommended Posts

Posted

Hello Farshad,

 

I have a serious problem with sessions. I am noticed that TDataSet created in mainmodule are sharing by different sessions.

 

Causing a data contamination from other user/sessions.

 

For each TDataSet on mainmodule I need a different session.

 

 

Could you tell about this ¿?

 

 

 

Posted

Data contamination from other user tables.

 

It is a big database divided in various schemas

 

data contamination refers for example

 

using schema1.Customers retrieves data from schema2.Customers

Posted

Sorry, the problem I think that is in fscript using global var fsGlobalUnit.

 

It contains a reference of all dataset in main module.

 

fsGlobalUnit is created once, I believe... then DataSets are sharing into diferent sessions.

 
  for i := 0 to ComponentCount - 1 do
      if Components.ClassNameIs('TADQuery') then
        fsGlobalUnit.AddObject(Components.Name, TADQuery(Components));

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...