| View previous topic :: View next topic |
| Author |
Message |
David Perkins Guest
|
Posted: Wed May 10, 2006 11:14 am Post subject: What causes 'Class Txxxx not found' at runtime? |
|
|
I'm using a some third-party Delphi components and can happily
manipulate their properties/events at design time. The app compiles OK.
At run time, when a form is created I get an error 'Class
T3rdPartyClassName not found'.
The project search path lists dirs containing the components bpi/bpl/lib
files. The form in question uses #pragma link "component". Runtime
packages are not used. Other components from the same bpl/lib are used
and actually create an instance of the form in question.
The components contain separate runtime and design time packages, all of
which are present.
Using BCB2006, update2
Any ideas? |
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Wed May 10, 2006 8:14 pm Post subject: Re: What causes 'Class Txxxx not found' at runtime? |
|
|
Long shot question: did you make the name of the component blank? For an
example of this in action create a new application, add a TBevel to the
form, remove the name, and run.
- Clayton |
|
| Back to top |
|
 |
Craig Farrell Guest
|
Posted: Wed May 10, 2006 9:14 pm Post subject: Re: What causes 'Class Txxxx not found' at runtime? |
|
|
Hi,
Maybe some kind of 'published' issue? i.e. if it works
just fine in a Delphi app, then maybe one of the published
property types in only 'available' (installed) in Delphi?
e.g. Delphi and C++ use different samples like TSpinEdit.
--Craig |
|
| Back to top |
|
 |
DavidPerkins Guest
|
Posted: Thu May 11, 2006 1:14 am Post subject: Re: What causes 'Class Txxxx not found' at runtime? |
|
|
| Quote: | Long shot question: did you make the name of the component blank? For an
example of this in action create a new application, add a TBevel to the
form, remove the name, and run.
|
It definitely has a name. |
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu May 11, 2006 2:14 pm Post subject: Re: What causes 'Class Txxxx not found' at runtime? |
|
|
David Perkins <please@no-spam.com> wrote:
| Quote: |
[...] I get an error 'Class T3rdPartyClassName not found'.
The project search path lists dirs containing the components
bpi/bpl/lib files. [...]
|
I've seen this error a couple of times and the error message
*was not* related to the actual problem. Exactly what the
actual problem was, I can't recall but it was definately an
issue with my code.
I suggest that you start a new application and drop the
component on the form and compile. That should confirm
that it's not the component (or if it is).
~ JD |
|
| Back to top |
|
 |
David Perkins Guest
|
Posted: Thu May 11, 2006 3:14 pm Post subject: Re: What causes 'Class Txxxx not found' at runtime? |
|
|
| Quote: | [...] I get an error 'Class T3rdPartyClassName not found'.
The project search path lists dirs containing the components
bpi/bpl/lib files. [...]
I've seen this error a couple of times and the error message
*was not* related to the actual problem. Exactly what the
actual problem was, I can't recall but it was definately an
issue with my code.
I suggest that you start a new application and drop the
component on the form and compile. That should confirm
that it's not the component (or if it is).
|
I found the error. Somehow the component declarations in the header
file had vanished. The components were still on the form and I could
happily set their properties etc, but when the form was dynamically
created at runtime it went bang.
Another one to add to the knowledge base. |
|
| Back to top |
|
 |
|