Board index » delphi » Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.

Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.

A friend of mine got Delphi 5. He had Delphi 4 Prof on his machine.
So he did the Upgrade from Delphi 4 To Delphi 5... After using it
with his project When he tried to close the Delphi IDE he got
Error messages for "BorlndMM.DLL" File.... After a lot of
looking we found that the Delphi Installer Doesn't Replace 2 Dlls
with the newer versions.These Are :

1) BORLNDMM.DLL
2) DELPHIMM.DLL

So if you upgrade your Delphi from 3 or 4 To 5 the go into the Delphi 5
CD and to RunImage Directory ... Copy These Two Files to your
<Windows>/System Directory and Voila! ... The Most IDE
Access Violation are gone!

Hope this tip to help some people having problems with delphi 5.

 

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


Quote
On Sat, 4 Sep 1999 15:41:31 +0300, "Gate" <G...@hotmail.com> wrote:
>A friend of mine got Delphi 5. He had Delphi 4 Prof on his machine.
>So he did the Upgrade from Delphi 4 To Delphi 5... After using it
>with his project When he tried to close the Delphi IDE he got
>Error messages for "BorlndMM.DLL" File.... After a lot of
>looking we found that the Delphi Installer Doesn't Replace 2 Dlls
>with the newer versions.These Are :

>1) BORLNDMM.DLL
>2) DELPHIMM.DLL

>So if you upgrade your Delphi from 3 or 4 To 5 the go into the Delphi 5
>CD and to RunImage Directory ... Copy These Two Files to your
><Windows>/System Directory and Voila! ... The Most IDE
>Access Violation are gone!

>Hope this tip to help some people having problems with delphi 5.

If those two files are in your Windows system directory, it's because
_you_ put them there. No Delphi installation program--any
version--puts them there.

If you installed Delphi 5.0 on top of an existing Delphi 4.0
installation, then you didn't heed the warning in the INSTALL.TXT
file: "If you install to a different location, be sure you do not
install over any previous Delphi release."

-Steve

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


No DELPHI installer puts it there.. but dont forget... delphi APPLICATIONS
who require borlandmm.dll WOULD put them there, for cross compatibility with
other applications that require them also... therefore.. it probably is an
oversight on borlands/inprises part

Steve Schafer (TeamB) <pand...@telepath.com> wrote in message
news:37d224fb.40212067@90.0.0.40...

Quote
> On Sat, 4 Sep 1999 15:41:31 +0300, "Gate" <G...@hotmail.com> wrote:

> >A friend of mine got Delphi 5. He had Delphi 4 Prof on his machine.
> >So he did the Upgrade from Delphi 4 To Delphi 5... After using it
> >with his project When he tried to close the Delphi IDE he got
> >Error messages for "BorlndMM.DLL" File.... After a lot of
> >looking we found that the Delphi Installer Doesn't Replace 2 Dlls
> >with the newer versions.These Are :

> >1) BORLNDMM.DLL
> >2) DELPHIMM.DLL

> >So if you upgrade your Delphi from 3 or 4 To 5 the go into the Delphi 5
> >CD and to RunImage Directory ... Copy These Two Files to your
> ><Windows>/System Directory and Voila! ... The Most IDE
> >Access Violation are gone!

> >Hope this tip to help some people having problems with delphi 5.

> If those two files are in your Windows system directory, it's because
> _you_ put them there. No Delphi installation program--any
> version--puts them there.

> If you installed Delphi 5.0 on top of an existing Delphi 4.0
> installation, then you didn't heed the warning in the INSTALL.TXT
> file: "If you install to a different location, be sure you do not
> install over any previous Delphi release."

> -Steve

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


Quote
>it probably is an oversight on borlands/inprises part

What's the oversight? It's clearly documented when you need to
deploy this DLL. The Delphi installer puts it in Delphi5/Bin. Nowhere
else.

/Anders

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


But the whole point of DLL's are that they are sharable, so it's not
unreasonable to put a single copy into the Windows\system dir when
running multiple applications outside of the Delphi IDE. Seeing as most
othe programs install DLL's to this location, it's no excuse to just say
'but we don't do it that way'.. If you're not conforming to standard
windows protocol, you've got to cater for this kind of thing.

Matt

Quote
Anders Ohlsson (Borland) wrote:
> >it probably is an oversight on borlands/inprises part

> What's the oversight? It's clearly documented when you need to
> deploy this DLL. The Delphi installer puts it in Delphi5/Bin. Nowhere
> else.

> /Anders

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


Quote
On Sun, 5 Sep 1999 18:53:04 -0700, "Wolf" <w...@wolf.com> wrote:
>No DELPHI installer puts it there.. but dont forget... delphi APPLICATIONS
>who require borlandmm.dll WOULD put them there, for cross compatibility with
>other applications that require them also... therefore.. it probably is an
>oversight on borlands/inprises part

??? If you are deploying a Delphi application that uses BORLNDMM.DLL,
and you neglect to properly install it along with your application,
then that is certainly YOUR oversight, not Borland's. If you are
saying that it was an oversight by Borland to not install those DLLs
to the Windows system directory, the answer is no, it was a conscious
decision to install them exactly where they are.

-Steve

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


Quote
Steve Schafer (TeamB) wrote:
>??? If you are deploying a Delphi application that uses BORLNDMM.DLL,

etc...

Do you all realise you're crossposting?

--
Rudy Velthuis

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


Quote
> >No DELPHI installer puts it there.. but dont forget... delphi
APPLICATIONS
> >who require borlandmm.dll WOULD put them there, for cross compatibility
with
> >other applications that require them also... therefore.. it probably is
an
> >oversight on borlands/inprises part

> ??? If you are deploying a Delphi application that uses BORLNDMM.DLL,
> and you neglect to properly install it along with your application,
> then that is certainly YOUR oversight, not Borland's. If you are
> saying that it was an oversight by Borland to not install those DLLs
> to the Windows system directory, the answer is no, it was a conscious
> decision to install them exactly where they are.

> -Steve

The problem is that if you had the Delphi 4 Borldmm.dll and delphimm.dll in
yourr
windows\system then delphi 5 won't load the new ones located in program
files\borland\delphi5\bin...
and this is causing some access violations to Delphi 5 IDE.. there are 2
solutions... either deleted from
windows\system or place the new one from program files\borland\delphi5\bin
to windows\system

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


Quote
On Wed, 8 Sep 1999 06:36:39 +0300, "Gate" <G...@hotmail.com> wrote:
>The problem is that if you had the Delphi 4 Borldmm.dll and
>delphimm.dll in yourr windows\system then delphi 5 won't load the new
>ones located in program files\borland\delphi5\bin...

Of course not. Look at the online help for LoadLibrary to see how
Windows searches for DLLs--the Windows system directory is searched
_before_ any directories listed on the path. Keep in mind that most
systems on which Delphi applications are deployed won't even have a
\Delphi5\BIN directory!

The solution is simple:

1) Install BORLNDMM.DLL and DELPHIMM.DLL in the same directory as the
application which needs them,

or

2) Install BORLNDMM.DLL and DELPHIMM.DLL to the Windows system
directory, but ensure that your application setup script explicitly
includes those files, and checks that they are up to date (if not, it
should replace them with the current version). This is exactly the
same process that must occur whenever a Windows application that uses
DLLs is installed.

-Steve

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


pand...@telepath.com (Steve Schafer (TeamB)) wrote:

Quote

>The solution is simple:
>...
>2) Install BORLNDMM.DLL and DELPHIMM.DLL to the Windows system
>directory, but ensure that your application setup script explicitly
>includes those files, and checks that they are up to date (if not, it
>should replace them with the current version). This is exactly the
>same process that must occur whenever a Windows application that uses
>DLLs is installed.

This is quite reasonable.  However, based on the original post, apparently
the Delphi 5 IDE itself depends on these DLLs, and its installer does not
check for this condition.

I can see the point you are trying to make, Steve, but I think the original
poster is correct in calling this a Delphi problem.  If the DLLs are
incompatible, they should have changed the name.  If they ARE downward
compatible, they should have checked \windows\system.

In my humble opinion...

- Tim Roberts, t...@probo.com
  Providenza & Boekelheide, Inc

Re:Warning!: Delphi 5 Installer Upgrade Bug! & Workaround.


On Fri, 10 Sep 1999 11:28:18 -0700, Tim Roberts <t...@probo.com>
wrote:

Quote
>This is quite reasonable.  However, based on the original post, apparently
>the Delphi 5 IDE itself depends on these DLLs, and its installer does not
>check for this condition.

>I can see the point you are trying to make, Steve, but I think the original
>poster is correct in calling this a Delphi problem.  If the DLLs are
>incompatible, they should have changed the name.  If they ARE downward
>compatible, they should have checked \windows\system.

You can{*word*222}up the installation of any number of programs by copying
DLLs to the wrong place, or copying the wrong versions to the right
place. In an ideal world, the operating system would be able to detect
and correct such transgressions. But Windows' shared library model
isn't robust enough to deal intelligently with the problem. In the
current case, even if Delphi's installation program had been smart
enough to notice the problem, that wouldn't have helped if someone or
something had copied those two DLLs to the Windows system directory
_after_ Delphi 5.0 had been installed.

-Steve

Other Threads