#11  
Old 2nd September 2011, 02:16 PM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: Exploring Remoting...

Yuri Maggi wrote:

> In this case, how to correctly match callback messages to the right thread ?
> I am really a newbie on this matter and any will appreciate any help.
> Thanks...


I'm not sure what you mean with that.

If you have a class, deriving from TInterfacedObject or TnxInterfacedObject
that implements that callback interface, you can create multiple instances of
that class for your different contexts.
  #12  
Old 3rd September 2011, 12:59 AM
yuri.maggi yuri.maggi is offline
Junior Member
 
Join Date: Aug 2010
Posts: 4
Default

I think I´ve some clues and will try them in some tests. Anyway, it should be very nice having more examples on the two-way remoting. As long as I see, this is a very powerful engine and we do not see too much discussions on it. Thanks...
  #13  
Old 8th September 2011, 08:35 AM
Yuri Maggi
 
Posts: n/a
Default Re: Exploring Remoting...

Thorsten,

One more question: in this multi-thread concept, do I have to care about
releasing the remoting instances just created ?

Thanks.


"Thorsten Engler [NDA]" <thorsten.engler@nexusdb.com> escreveu na mensagem
news:xn0himrdu2svtt5000@news.nexusdb.com...
> Yuri Maggi wrote:
>
>> In this case, how to correctly match callback messages to the right
>> thread ?
>> I am really a newbie on this matter and any will appreciate any help.
>> Thanks...

>
> I'm not sure what you mean with that.
>
> If you have a class, deriving from TInterfacedObject or
> TnxInterfacedObject
> that implements that callback interface, you can create multiple instances
> of
> that class for your different contexts.


  #14  
Old 8th September 2011, 07:15 PM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: Exploring Remoting...

Yuri Maggi wrote:

> Thorsten,
>
> One more question: in this multi-thread concept, do I have to care about
> releasing the remoting instances just created ?


I'm not quite sure I understand your question. Normal interface semantics,
including reference counting, are in effect.

If you haven't done so before, you might want to read the blog posts I made
about remoting in the past:

http://www.nexusdb.com/support/index...f-fundamentals
http://www.nexusdb.com/support/index...=intf-advanced
http://www.nexusdb.com/support/index...tf-aggregation
http://www.nexusdb.com/support/index...ng-big-picture
http://www.nexusdb.com/support/index...-example-basic
  #15  
Old 8th September 2011, 11:20 PM
Yuri Maggi
 
Posts: n/a
Default Re: Exploring Remoting...

I´ve already read all posts and a lot of other stuff... A little bit hard to
understand everything well in the short time.

Maybe, if possible, you could check the code I´ve sent on the binaries that
implements an interface to transfer streams using as basis the one-way
remoting example. The thing is that is very clear when the instance is
created but it is not clear to me when the instance is released. I´d
appreciate any advice...



"Yuri Maggi" <yuri.maggi@engilab.com.br> escreveu na mensagem
news:4e67e399$1@DSVR011613....
> Thorsten,
>
> One more question: in this multi-thread concept, do I have to care about
> releasing the remoting instances just created ?
>
> Thanks.
>
>
> "Thorsten Engler [NDA]" <thorsten.engler@nexusdb.com> escreveu na mensagem
> news:xn0himrdu2svtt5000@news.nexusdb.com...
>> Yuri Maggi wrote:
>>
>>> In this case, how to correctly match callback messages to the right
>>> thread ?
>>> I am really a newbie on this matter and any will appreciate any help.
>>> Thanks...

>>
>> I'm not sure what you mean with that.
>>
>> If you have a class, deriving from TInterfacedObject or
>> TnxInterfacedObject
>> that implements that callback interface, you can create multiple
>> instances of
>> that class for your different contexts.

>


  #16  
Old 9th September 2011, 12:21 AM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: Exploring Remoting...

Yuri Maggi wrote:

> I´ve already read all posts and a lot of other stuff... A little bit hard to
> understand everything well in the short time.
>
> Maybe, if possible, you could check the code I´ve sent on the binaries that
> implements an interface to transfer streams using as basis the one-way
> remoting example. The thing is that is very clear when the instance is
> created but it is not clear to me when the instance is released. I´d
> appreciate any advice...


As with any interface, the instance is released when the last interface
reference to it goes out of scope.


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BCB remoting example ADRIA-electronic nexusdb.public.remoting 2 26th January 2010 09:03 PM
Remoting and ODBC sorin nexusdb.public.remoting 3 4th September 2009 12:43 AM
NexusDB Remoting Dennis Landi nexusdb.public.support 2 20th November 2008 07:43 PM
Remoting - The Big Picture Hannes Danzl[NDD] nexusdb.public.announcements 0 13th August 2008 08:16 AM
Remoting - Introduction Thorsten Engler nexusdb.public.discussions 6 13th September 2007 03:16 PM


All times are GMT +11. The time now is 08:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.