Solved

'Form is not registered' error message

Posted on 1999-01-14
2
139 Views
Last Modified: 2010-04-06
I am working on an app that I did not write, and occasionally users start getting an error message that reads 'Form is not registered'.  I've looked through the source for the app and the VCL and can't find any reference to this error.  Any ideas?

Thanks in advance...
0
Comment
Question by:comma011499
2 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 1356636
Hmm. Perhaps the application uses an ActiveX or COM object. These kind of objects are implemented in a DLL file and need to be registered by calling "regsvr32 file.dll".

Regards, Madshi.
0
 
LVL 2

Accepted Solution

by:
Thaddy earned 50 total points
ID: 1356637
Nope, got nothing to do with ocx's.
This exception means that a Tform(x) instance called 'Form'(probably) is trying to create itself at runtime, but the class has no other instance. This in turn means, that it is not registered with the RTTI mechanism, which causes this error:
Delphi does not know how to create this form because it can't find any type information.
The most likely cause is that somehow somewhere a form that was there during development has gone..(and is now only created at runtime..)
No problem really: try to locate any runtime created forms.
Then, in the initialization section, call 'Registerclass'(es)with the classname of the form.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 89
Magic Software info 18 130
Performance of SQL statement 37 111
Tidtcpserver listening on multiports? 1 27
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…
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…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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