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? Or 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. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Luijer Sent: Monday, August 15, 2005 5:28 PM To: [email protected] 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. > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Chris @ IT > Sent: Monday, August 15, 2005 4:26 PM > To: [email protected] > 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: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h5o4gc2/M=362131.6882499.7825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124123676/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

