Results 1 to 3 of 3

Thread: Collection in dll be accessable from other dll.

  1. #1

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Collection in dll be accessable from other dll.

    Ok, here is what I need. I need to have a dll that will hold a collection of connected sockets. A third party dll needs access to this collection. I have tried this many times before, but whenever I try to access the collection which I tried making static, the thrid party dll just gets a blank collection?

    Any one got any ideas? Basically I need plugins to access my socket collection so that they can handle sending their data themselves to clients.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    How are the accessing the collection? Are you trying to access them like this
    thirdPartyColl = MyDll.MyCollection

    Maybe you can call the clone method on your object to return a copy, or you might want to try and implement IClonable and provide your own clone method.

  3. #3

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Clone just might do that! Thanks. I havent gotten to the actual wwriting this yet. I am going on something I tried a long time ago. But that just might work.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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