Results 1 to 4 of 4

Thread: Windows Service

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Location
    Pune,India
    Posts
    7

    Question Windows Service

    Hello All
    A quick help on this will be highly appreciated
    I have a windows service written in .Net .The Service exports a Class.When the service starts i set one shared property(boolean Property-value set=True) of this class.Then there is Client Windows Application which imports the same Class and instantiates the exported class earlier.However when i access the shared property of the class i get the value as False(though i set it to True as mentioned earlier).
    Please help me to get over this problem.

    Thanks in advance
    Anuj Khanna

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Imports just imports the namespace sort of like with. You are trying to share the same instance or shared info over different application domains, imports will not do this. You need to use remoting or some API tricks.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Location
    Pune,India
    Posts
    7
    Thanks Edneeis
    Of course i am using Remorting as u rightly said that i am crossing Application domains.However Thanks for the suggestion.I have observed a strange behaviour now.If i try to access a shared variable using a non-shared function i get things right however accessg it through a property procedure does not work.I am creating a Server-Side singleton object for doing this.why is this behaviour so.
    Anuj Khanna

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I'm not sure try posting some code and maybe we can help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width