Property StyleTemplates does not exists

General TRichView support forum. Please post your questions here
Post Reply
[email protected]
Posts: 2
Joined: Tue Jul 17, 2012 12:04 pm

Property StyleTemplates does not exists

Post by [email protected] »

Hello, all,

I have a problem in running a form with RichView control, on new installed Delphi environment.

Have no compilation or build errors, but when the form is started, I get a message :

Project test.exe raised exception class EReadError with messages 'Property StyleTemplates does not exists'.

I assume It has to do something with RichView versionm but when comparing installation with original development machine, could not see any differences.

What could be the problem ?

Thanks and best regards,
Zoran Kuret
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It happens because of a version mismatch.
One version of TRichView is installed in Delphi IDE, but another version is used to compile applications.
Find files of the old version of TRichView and delete them.
[email protected]
Posts: 2
Joined: Tue Jul 17, 2012 12:04 pm

Post by [email protected] »

Could you please give me som more details, which files exactly are the problem ?

And how is possible that Delphi uses another version to compile applications, besides the one which is installed in IDE ?

Thank you very much in advance,

Best Regards,
Zoran
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

When compiling application, Delphi does not actually use units installed in IDE.

(in applications that do not use run-time packages) Delphi searches for pas and dcu files in the paths listed in the library paths (in new version of Delphi IDE, they are in menu Tools | Options, page Environment Options | Delphi Options | Library, Library path.
Directories are processed in the order they are listed in the "Library path", so, if the path of the older version is listed before the path of the new version, the old files will be used.

So you need to find a directory where the old files (RichView.pas, RichView.dcu and others) are located, and delete them (or at least move them to another directory, not listed in "Library path".

In future, the simplest way to upgrade is copying files to the same directory, overriding the old files. Then recompiling packages.
Post Reply