Solved

Components are not created when running in DLL or COM

Posted on 2003-12-07
3
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

623 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