Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / June 2004

Tip: Looking for answers? Try searching our database.

Broadcast Problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Devin Rader - 24 Jun 2004 23:31 GMT
Using the Remoting Events sample for from Ingos book, I managed to get a
quick and dirty little chat app running.  Now I want to change the server a
bit so it looks more like my real world application.  I created a class
directly in the server app that uses a timer to call the BroadcastMessage()
method.  If I load the Server and then start the EventListener project, the
server never seems pick up is a new event listener.  If I  then start up the
EventInitiator project and broadcast a a message, it works and the server
broadcasts it out to the EventListener, so I am not sure why me just calling
the BroadcastMessage() method directly in the server doe not also broadcast.

Any ideas?

Thanks!

Devin
Allen Anderson - 25 Jun 2004 15:51 GMT
because your not getting the same version of the object most likely.
If you are just 'newing' a new instance of the broadcaster then its
not the same one that other clients have connected to.  A good way
aroudn this is to create the remoting object locally with new, the
'marshal' the object into remoting.  This way you have the local
reference to the object as well as the remote object up and running.
When you call broadcast on that object it should act as desired.

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com

>Using the Remoting Events sample for from Ingos book, I managed to get a
>quick and dirty little chat app running.  Now I want to change the server a
[quoted text clipped - 11 lines]
>
>Devin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.