Start multiple processes of a dll in delphi
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-04-15T11:07:51Z
Indexed on
2010/04/15
11:33 UTC
Read the original article
Hit count: 304
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 :)
© Stack Overflow or respective owner