Comments on: Registering DataSnap Server Class in runtime with Delphi http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/ Where Andreano Lanusse talk about technology, software development, programming techniques, databases, games and more through articles, tutorials and videos Wed, 26 Dec 2012 21:32:13 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Joel http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/#comment-11303 Wed, 26 Dec 2012 21:32:13 +0000 http://www.andreanolanusse.com/en/?p=409#comment-11303 Regarding Hugo’s comment, your code was correct but your assert error message is wrong (which is why he was confused). The error message should say ‘can”t add class to active server’ (not “non active server”).

]]>
By: Publishing providers when registering DataSnap Server Class in runtime | Andreano Lanusse Blog | Technology and Software Development | Delphi http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/#comment-9547 Tue, 25 Oct 2011 00:14:23 +0000 http://www.andreanolanusse.com/en/?p=409#comment-9547 […] […]

]]>
By: Hugo Carrillo http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/#comment-7359 Tue, 29 Mar 2011 01:49:18 +0000 http://www.andreanolanusse.com/en/?p=409#comment-7359 Andreano, thanks for your answer, but i insist. I put DSServer with AutoStart to False (in design). In onCreate of DataModule i assign the port of DSTCPServerTransport and start DSServer

DSTCPServerTransport.Port := getPort();
DSServer.Start;
TSimpleServerClass.Create(Self, DSServer, TMYClassServer, TDSLifeCycle.Session);

And i get “Method not found in the server method list” for all calls. When i put code in diferent order

DSTCPServerTransport.Port := getPort();
TSimpleServerClass.Create(Self, DSServer, TMYClassServer, TDSLifeCycle.Session);
DSServer.Start;

work fine for me.

Andreano, I have some servers in DataSnap 2010 and i saw some behaviors not expected, for example:
– Memory used by server.
– When method return DBXReader or other objects type, i can’t get parameter by name,
– And others

But, in this moment i try Delphi XE and i see that those behaviors are no longer more. now I see behaviors that have pleasantly surprised me.
– Better performance in memory management
– I get parameters by name for DBXReader parameters.
– Higher speed. Datasnap in XE is very fast respect Datasnap 2010.

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/#comment-7357 Tue, 29 Mar 2011 00:29:50 +0000 http://www.andreanolanusse.com/en/?p=409#comment-7357 In reply to Hugo Carrillo.

@Hugo my source was correct, the server will register the classes during the startup process, not after

]]>
By: Hugo Carrillo http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/#comment-7337 Sun, 27 Mar 2011 12:02:58 +0000 http://www.andreanolanusse.com/en/?p=409#comment-7337 I try Delphi XE and used code explain in this article, but, the i change the sentence

Assert(AServer.Started = false, ‘Can”t add class to non active Server’);

by

Assert(AServer.Started = true, ‘Can”t add class to active Server’);

When the server is active, not show class and methods to client app. Only work when the server is not active.

]]>
By: Tweets that mention Registering DataSnap Server Class in runtime with Delphi | Andreano Lanusse English Blog -- Topsy.com http://www.andreanolanusse.com/en/registering-datasnap-server-class-in-runtime-with-delphi/#comment-4948 Wed, 01 Dec 2010 01:11:19 +0000 http://www.andreanolanusse.com/en/?p=409#comment-4948 […] This post was mentioned on Twitter by Embarcadero Tech, Embarcadero Asia. Embarcadero Asia said: Registering DataSnap Server Class in runtime with Delphi http://bit.ly/eUAB0U […]

]]>