Currently I don't I load the plugin (dll) and call its process function
sequentially with threads would I need to have the thread load
getprocaddress execute unload? can I load once, then spawn lots of
threads to do the process function?
The reason for this is if a slow module is being called it wastes time for
another module that does something totally different since the processing is
sequential; much like a pop server that has to handle mail from 3 different
users one at a time!
Chris Albert,
Innovative Technologies.
Message
From: delphi-en (AT) yahoogroups (DOT) com [mailto:delphi-en (AT) yahoogroups (DOT) com] Behalf
Peter Luijer
Sent: Monday, August 15, 2005 5:28 PM
To: delphi-en (AT) yahoogroups (DOT) com
Subject: RE: [delphi-en] DLLs and Threads
Sensitivity: Confidential
I'm not too fond of using (muliple) threads if they're not needed,
but do you mean you load/call function/unload the DLL all the time?
Greetz,
Peter.
Message
From: delphi-en (AT) yahoogroups (DOT) com
[mailto:delphi-en (AT) yahoogroups (DOT) com] Behalf Chris @ IT
Sent: Monday, August 15, 2005 4:26 PM
To: delphi-en (AT) yahoogroups (DOT) com
Subject: [delphi-en] DLLs and Threads
Sensitivity: Confidential
Hi All,
I have this application that loads DLL's dynamically as
plugins and as such
I use the loadlibrary, getprocaddress, free library routines.
The host application loads the dll and calls its process
export function so
that the dll can do what its meant to do. The problem is
there are usually
many requests to be done (about 500 every second) and when I
call the dll
for each sequentially its takes quite a bit of time
What I want to try is spawn a new thread that loads the dll
and calls the
function. With this approach the dll will be loaded many times and its
function called many times.
Anything I should know about calling dlls in this manner? All
dlls and apps
written in Delphi 7
Chris.
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Yahoo! Groups Links
Yahoo! Groups Sponsor
<font face=arial size=-1><a href="*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life -*brought to you by Economy</a>.</font>
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Yahoo! Groups Links
<*To visit your group on the web, go to:
<*To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
<*Your use of Yahoo! Groups is subject to: