BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

100:Error loading library: CRPE32.DLL

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Anders Gustavsson
Guest





PostPosted: Wed Mar 28, 2007 10:46 pm    Post subject: 100:Error loading library: CRPE32.DLL Reply with quote



Hi all,

This problem has been discussed here before, but I haven't seen any
complete solution to it yet. Right now I think I have found one
possible cause of this error:

The TCrpe.LoadEngine metod has a weakness in it's way to find the
CRPE32.DLL.

It first calls a method GetCommonFilesPath, where it tries to read the
place of the corresponding version of Crystal Reports. If you have
Crystal installed on your computer - and a lot of programmers might
have Smile - you will not see the problem, because the right DLL:s will
always be there.

If you don't (and users might not) have CR installed, the component
will just try to open CRPE32.DLL in whatever directory that happens to
be at hand - that is not trying to set any directory. The thought might
be that the DLL should be in the working directory of the app (or maybe
in the search path?).

This means that if you
A. have the application start in the same directory where you have
the correct DLL
B. or maybe happen to have the correct DLL in the search path, and
not an old one?
C. and don't try to change the working directory eg by using an
OpenFileDialog

everything will work all right!

We installed our version 10 CR DLL:s in the application directory, and
it used to work fine. But some customers reported random occurences of
the title error message. As far as we can see now, it happened to them
after opening a file through our app in a directory not being the app
directory.

As I think the proposed way for Crystal installations today is to have
the DLL:s in the app directory, the code in CRPE32.PAS should change to
sCrpe :=
IncludeTrailingPathDelimiter(ExtractFilePath(Application.ExeName)) +
'CRPE32.DLL'

Hope this is of some help to someone more - if there are anybody out
there still on Crystal?

/Anders
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.