Solved

Components are not created when running in DLL or COM

Posted on 2003-12-07
3
157 Views
Last Modified: 2010-04-05
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?

0
Comment
Question by:boazm
3 Comments
 
LVL 5

Accepted Solution

by:
delphized earned 250 total points
ID: 9891883
Please check if the form or datamodule containing the components has been created (datamodule:=tdatamodule.create), because in lybrary you don't have the autocrete forms option as in application, so you have to do it by hand!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now