DelphiAcademy icon indicating copy to clipboard operation
DelphiAcademy copied to clipboard

New in DataSnap

Open LJGutierrez opened this issue 4 years ago • 0 comments

Dear Mr. Rizzato,

I made my first DataSnap and it is working fine. Now I want to decorate it with some additional functions. One of them is to handle a List with records that every xx minutes must be sent to disk. I have two questions, how can I generate the global class to any session and all sessions can access it? This variable must be ThreadVar or Var? ... I declared one in WebModule the Thread Var but it doesn't work well because dissapear when a second session is created! ... The procedure to save to disk is a Timer ... do you recommend that or there is a more "elegant" solution?

LJGutierrez avatar Feb 14 '21 16:02 LJGutierrez