Maybe it's a multi-threading problem. Does the error occur consistently, or does it occur ervery now and then?
If it occurs now and then, does it help if you create a global TCriticalSection and make sure that all threads enter this section, read the alias from the registry, connect, and leave the section?
------------------
Marco Kalter
Allround Automations