Solved

'Form is not registered' error message

Posted on 1999-01-14
2
136 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

18 Experts available now in Live!

Get 1:1 Help Now