Mega Search
23.2 Million


Sign Up

Make a donation  
Upgrade from XE2 to XE5  
News Group: embarcadero.public.delphi.database.multi-tier

Hi all!


I'm trying to rebuild my datasnap server in XE5 but i get the following 
error: Undeclared identifier: 'TDSSessionManager'

procedure TerminateThreads;
begin
  if TDSSessionManager.Instance <> nil then
    TDSSessionManager.Instance.TerminateAllSessions;
end;

What do I have to do for upgrade from XE2 to XE5?

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 10-Apr-2014, at 7:41 AM EST
From: Mikael Nilsson
 
Re: Upgrade from XE2 to XE5  
News Group: embarcadero.public.delphi.database.multi-tier
Hi Mikael,


> I'm trying to rebuild my datasnap server in XE5 but i get the
> following error: Undeclared identifier: 'TDSSessionManager'

That class was moved to another unit.


> 
> What do I have to do for upgrade from XE2 to XE5?


Update the uses section to include Datasnap.DSSession.

When I put the cursor over TDSSessionManager and press F1, I can see
this:

http://docwiki.embarcadero.com/Libraries/XE5/en/Datasnap.DSSession.TDSSessionManager




Regards,


Cesar Romero

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Apr-2014, at 7:51 AM EST
From: Cesar Romero