Results 1 to 2 of 2

Thread: Singleton Objects

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    5

    Red face Singleton Objects

    Hi,

    I have a question I was hoping you could also answer for me... I've created a singleton object on an ActiveX EXE server and created a client to connect to it, and so far they work fine. When opening multiple clients, they all see the same singleton object and all receive events.

    My question is this: The singleton object only works when the thread count is set to 1. However, if there was a thread per object the singleton model breaks down. I know the reason for this, but I was wondering if there was any way possible to have a multithreaded client/server and still preserve the singleton model? Thank You.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Hmm I think you could either have the singleton object call another activeX EXE to handle the asynch stuff or piggybacking a timer may work but I'm not sure if they are in the same process space. The coffee example on the MSDN CD for multithreading.

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