Delphi XE2 Datasnap Callback?

On the client side, the objects classes are not in the executable. To be sure, try this dirty check. Create a reference in the client code referring to the used classes.

Eg.

Up vote 1 down vote favorite share g+ share fb share tw.

I am trying to make a callback, sending different object types and some extra info for the objects. So I made this class: TCallBackObject = class Sender : string; ObjectClass : string; Obj : TObject; Status : integer; ID : integer; end; In different situations I create different Objects in the Obj field, but I always get the error message when executing DSServer. BroadcastObject "Internal: Cannot instantiate object ..." Here is my really simple example: 4shared.com/file/fONlAGM3/DataSnapExampl... Please see the example and tell me what is wrong... delphi object callback datasnap link|improve this question asked Dec 15 '11 at 8:04Kiril Hadjiev312.

On the client side, the objects classes are not in the executable. To be sure, try this dirty check. Create a reference in the client code referring to the used classes.

Eg. TForm6 = class(TForm) SQLConnection1: TSQLConnection; DSClientCallbackChannelManager1: TDSClientCallbackChannelManager; Button1: TButton; Label1: TLabel; Label2: TLabel; procedure Button1Click(Sender: TObject); procedure OnExecute(AValue: TObject); private c: TCat; //dummy refernce to the class d: TDog; //dummy refernce to the class co: TCAllbackObject; //dummy refernce to the class public { Public declarations } end; Now it should works. A cleaner way is to use an empty register class method for each classes.

As the following: TCallBackObject = class Sender: string; ObjectClass: string; Obj: TObject; Status: integer; ID: integer; class procedure Register; end; ... class procedure TCallBackObject. Register; begin // end; initialization TCallBackObject. Register; end.

Daniele, you are a genious :) Thanks A LOT! – Kiril Hadjiev Dec 15 '11 at 11:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions