Components are not created when running in DLL or COM
Posted on 2003-12-07
I use TXmlDocument and TIdFTP components in a small program. If I compile the program as Application, it works fine, whether I declare objects of these types under VAR and perform Create(Application.Owner) or I create these objects by putting components on a Form or a DataModule. If I compile the same code under "library" directive, trying to build either regular DLL or COM, the objects are not created by any of these means, so when trying to assign a value to a property of any of them I recieve "Unaccessible value" error message.
What am I doing wrong?