Jump to content

Serious problem with sessions.


KingOrmon

Recommended Posts

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 ¿?

 

 

 

Link to comment
Share on other sites

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));
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...