Allowing two separate Delphi applications/processes to communicate
Posted on 2006-06-28
I have a very sorted large string list (up to 30,000 items) that I need to (a) read from disk and then (b) search and return an item from the list. I am thinking of loading this to a TStringList. However, the search and item return may have to be repeated many times in a given session, and so I would like to avoid repeating the bottleneck of reading the large list into memory each time a search is requested.
So is there a means to (1) Load the string list into memory one time at the beginning of a session, and (2) have a separate process search the string list (already loaded in memory) and return the item? It sounds like a DLL to me, but I have never used DLLs and so would need help...or a better idea.
I am posting the question with higher points in the hopes of some basic code examples.