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
  1. Home
  2. General Programming
  3. C#
  4. How to check if RPC Server is available [modified]

How to check if RPC Server is available [modified]

Scheduled Pinned Locked Moved C#
questioncomsysadminhelptutorial
3 Posts 2 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.
  • B Offline
    B Offline
    beatles1692
    wrote on last edited by
    #1

    Hi I have a problem working with MS Word interop.I create an instance of Word Application and I want to use it as a singleton object ( so I don't have to create another word application as long as a user is working with my application) But if user opens a word document it will be opened using the word app instance that I've created and when he/she quits the word the word instance is gone thus I have a reference to a rpc server that is not available anymore and if i try to do somthing with it a RPC server is unavalilable exception will be thrown. How can I check to see if a particular RPC server is still available? Thanks alot -- modified at 4:01 Saturday 14th July, 2007

    M 1 Reply Last reply
    0
    • B beatles1692

      Hi I have a problem working with MS Word interop.I create an instance of Word Application and I want to use it as a singleton object ( so I don't have to create another word application as long as a user is working with my application) But if user opens a word document it will be opened using the word app instance that I've created and when he/she quits the word the word instance is gone thus I have a reference to a rpc server that is not available anymore and if i try to do somthing with it a RPC server is unavalilable exception will be thrown. How can I check to see if a particular RPC server is still available? Thanks alot -- modified at 4:01 Saturday 14th July, 2007

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      The only way to check whether a cross-process object still works is to make a call to that object. I'm not sure if Word offers a way for you to request that it should keep running even if the user closes the last frame window. I actually thought applications were supposed to keep running while there were still outstanding references - ensure you're not calling Marshal.ReleaseComObject anywhere.

      Stability. What an interesting concept. -- Chris Maunder

      B 1 Reply Last reply
      0
      • M Mike Dimmick

        The only way to check whether a cross-process object still works is to make a call to that object. I'm not sure if Word offers a way for you to request that it should keep running even if the user closes the last frame window. I actually thought applications were supposed to keep running while there were still outstanding references - ensure you're not calling Marshal.ReleaseComObject anywhere.

        Stability. What an interesting concept. -- Chris Maunder

        B Offline
        B Offline
        beatles1692
        wrote on last edited by
        #3

        Thank you. I don't use Marshal.ReleaseComObject and I don't release the app reference that I've got either but It happens.

        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