Start multiple processes of a dll in delphi
- by Tom
I have a "ActiveX library" project created with Delphi 2007. The library interface return XML data based on input values. This is then used by a PHP script that displays the data on a web page. This works great!
The problem is that i can only run one instance of the dll process on the server. However, for security reasons, each of my customer should be able to access their own process of the dll (because the dll is always connected to only one database).
Also, because of the way the delphi code is built, it doesn't support multiple threads. (It's a 100 000+ lines project using lots of singleton classes)
Is there a way of starting several instances of the same dll? Is there a better way of transferring XML data from delphi to PHP?
Sorry for the longish question, any help is appreciated
(ps. I know the delphi code should be refactored, but this would mean 6 months of "circular reference" -hell :)