|
-
Jul 15th, 2003, 03:11 AM
#1
Thread Starter
New Member
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
-
Jul 15th, 2003, 04:52 AM
#2
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.
-
Jul 16th, 2003, 12:30 AM
#3
Thread Starter
New Member
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.
-
Jul 16th, 2003, 12:55 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|