Solved

Components are not created when running in DLL or COM

Posted on 2003-12-07
3
160 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

15 Experts available now in Live!

Get 1:1 Help Now