Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Problem in remoting

Problem in remoting

Scheduled Pinned Locked Moved C#
helpquestionsysadminloungecareer
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mic Mathi
    wrote on last edited by
    #1

    Hi all, I did a chat application. But I stuck in the finishing point. I used a windows service as server. This windows service will create and maintain a remoteable object. The clients are connected to this remoteable object using tcp channel. In addition, I implemented an application for the interface of server. This windows application will run on the server machine. Users are added throw this windows application. In addition, the available users and their status will display in this application. The windows service with startup type automatic will always run on the machine. Whenever the windows application for the server interface started, It will call a function on the remotable object to attach this application to windows service. remotableObject.AttachServer(this); 'this' will stored in the 'remotableObject'. So whenever the clients become online or offline, they will send a notification to windows service. If the server interface application is running the windows service will try to list the status of users in a list box. To do this, windows service will pass a serialized class of 'users' to server interface application. Everything is ok till here. I could deserialize the 'users' object. Now only one job is remaining is that list the users in a 'listbox' control. But when i call the functions of listbox, the program stop responding. No errors are displayed. Can you guess what is the problem? Thanks and Regards, Mic

    P 1 Reply Last reply
    0
    • M Mic Mathi

      Hi all, I did a chat application. But I stuck in the finishing point. I used a windows service as server. This windows service will create and maintain a remoteable object. The clients are connected to this remoteable object using tcp channel. In addition, I implemented an application for the interface of server. This windows application will run on the server machine. Users are added throw this windows application. In addition, the available users and their status will display in this application. The windows service with startup type automatic will always run on the machine. Whenever the windows application for the server interface started, It will call a function on the remotable object to attach this application to windows service. remotableObject.AttachServer(this); 'this' will stored in the 'remotableObject'. So whenever the clients become online or offline, they will send a notification to windows service. If the server interface application is running the windows service will try to list the status of users in a list box. To do this, windows service will pass a serialized class of 'users' to server interface application. Everything is ok till here. I could deserialize the 'users' object. Now only one job is remaining is that list the users in a 'listbox' control. But when i call the functions of listbox, the program stop responding. No errors are displayed. Can you guess what is the problem? Thanks and Regards, Mic

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Hi Mic, As per my concern, You are going to update the UI (Form item). I would to say, If you want to update the UI then please do it with the help of delegates. I thought yor are update the UI in any event so it going to stuck. Please go through how to update the UI via deligates.

      Parwej Ahamad g.parwez@gmail.com

      M 1 Reply Last reply
      0
      • P Parwej Ahamad

        Hi Mic, As per my concern, You are going to update the UI (Form item). I would to say, If you want to update the UI then please do it with the help of delegates. I thought yor are update the UI in any event so it going to stuck. Please go through how to update the UI via deligates.

        Parwej Ahamad g.parwez@gmail.com

        M Offline
        M Offline
        Mic Mathi
        wrote on last edited by
        #3

        Oh yes :) the scenario I explained above, it happened when the server interface tried to add a user to remoteable object. Its work in an event of server interface windows application. I tried another example, which is not call from any event. It is working. Therefore, as per you said I will use delegates. But how can you understand that it is the problem of events? Actually I didn't understand what is the real problem that's why I ask. Thanks for your precious advice. Thanks and Regards, Mic

        P 1 Reply Last reply
        0
        • M Mic Mathi

          Oh yes :) the scenario I explained above, it happened when the server interface tried to add a user to remoteable object. Its work in an event of server interface windows application. I tried another example, which is not call from any event. It is working. Therefore, as per you said I will use delegates. But how can you understand that it is the problem of events? Actually I didn't understand what is the real problem that's why I ask. Thanks for your precious advice. Thanks and Regards, Mic

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          Because i have resoved the same problem. I have experience in Instant Messaging architech.

          Parwej Ahamad g.parwez@gmail.com

          E 1 Reply Last reply
          0
          • P Parwej Ahamad

            Because i have resoved the same problem. I have experience in Instant Messaging architech.

            Parwej Ahamad g.parwez@gmail.com

            E Offline
            E Offline
            Elayaraja Sambasivam
            wrote on last edited by
            #5

            Try Application.Doevents Regards Elayaraja.S

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups