Results 1 to 2 of 2

Thread: Multithreaded DLL

  1. #1
    sgonepudi is offline Registered User
    Join Date
    Jan 2006
    Posts
    1

    Multithreaded DLL

    I would like to create a multithreaded DLL in VC++ or C++. What is the standard approach to developed multithreaded dll's in C++ or VC++?

    I have created a DLL (i.e. MFC App Wizard DLL). In that DLL I have created one class that contains some validation logic and created one ThreadPool class.

    At the time of DLL loading (DLL constructor) I have created some number (for example 2) of threads and deletes those threads at time of DLL unloading (DLL destructor).

    In that DLL I exported one function. This function takes the input from the client data, creates the object to validation class and assigns the user data to the validation object and placed that validation object in the Thread Pool queue and signals the threads about work arrived. Then free thread picks this and validates the user request and returns the result.

    Code is working fine. But here the problem is every client loading the DLL in to his address space in that situation every time DLL is creating the threads.

    But I need a dll that will be in the memory and it has to take requests from the clients and assigns to the different threads. DLL has to create thread only one time instead of creating threads every time when client loads the DLL.

    I want to create the threads at one time only.

    If any body familiar about Multithreaded DLLs could you please send me the reply. It is very helpful to me.

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Sorry, but these forums are for Ice-specific questions only. Please contact Microsoft support or use one of the Visual C++ mailing lists or newsgroups for general questions about DLLs.

    Also, please see this thread in case you have any Ice-specific questions.
    Last edited by marc; 01-22-2006 at 11:54 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. use ice in dll?
    By cool stone in forum Help Center
    Replies: 4
    Last Post: 05-23-2007, 06:52 AM
  2. Replies: 3
    Last Post: 05-02-2007, 09:51 AM
  3. Replies: 3
    Last Post: 12-02-2005, 09:49 AM
  4. some problems with dll
    By simpley in forum Help Center
    Replies: 1
    Last Post: 01-21-2005, 03:18 AM
  5. Missing DLL
    By dwforslund in forum Help Center
    Replies: 7
    Last Post: 02-19-2003, 10:10 AM

Posting Permissions

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