Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Oct 21, 2015 12:12 AM Last Post By: Yilmaz Yoru
Petr Vykouk

Posts: 42
Registered: 6/4/00
exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 4, 2015 4:28 AM
Build in CX10 with classic compiler link to BORLNDMM.DLL - dbk_fcall_wrapper

Win32/Release classic Borland compiler:
******************************************************************************
Section: Import
File Offset: 00263400 (2503680)
ImportLookUpTblRVA:002701A4
Time Stamp: 00000000
Forwarder Chain: 00000000 (index of first forwarder reference)

Imports from BORLNDMM.DLL -------------------------->>> here is error - XE8 Upd1 is without BORLNDMM.DLL
__dbk_fcall_wrapper

Imports from ADVAPI32.DLL
RegCloseKey
RegConnectRegistryW
RegCreateKeyExW
RegDeleteKeyW
RegDeleteValueW
RegEnumKeyExW
RegEnumValueW
RegFlushKey
RegLoadKeyW
RegOpenKeyExW
RegQueryInfoKeyW
RegQueryValueExW
RegReplaceKeyW
RegRestoreKeyW
RegSaveKeyW
RegSetValueExW
RegUnLoadKeyW

....
Win32/Release new clang32 compiler: without BORLNDMM.DLL, the same as in XE8 Upd1 and Win64
******************************************************************************
Section: Import
File Offset: 0025BC00 (2472960)
ImportLookUpTblRVA:00269190
Time Stamp: 00000000
Forwarder Chain: 00000000 (index of first forwarder reference)

Imports from ADVAPI32.DLL
RegCloseKey
RegConnectRegistryW
RegCreateKeyExW
RegDeleteKeyW
RegDeleteValueW
RegEnumKeyExW
RegEnumValueW
RegFlushKey
RegLoadKeyW
RegOpenKeyExW
RegQueryInfoKeyW
RegQueryValueExW
RegReplaceKeyW
RegRestoreKeyW
RegSaveKeyW
RegSetValueExW
RegUnLoadKeyW

It is Error ?!

Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 4, 2015 9:34 AM   in response to: Petr Vykouk in response to: Petr Vykouk
El 4/10/15 a las 13:28, Petr Vykouk escribió:
Build in CX10 with classic compiler link to BORLNDMM.DLL - dbk_fcall_wrapper

RegUnLoadKeyW

It is Error ?!

It's already reported in Quality Portal:

https://quality.embarcadero.com/browse/RSP-11768

There is a workarround from Roy Nelson in the Comments section:


Here is what you can do...
1) use impdef, as follows:
"impdef memmgr.def borlndmm.dll"
2) load the "memmgr.def" into a text editor.
3) comment these lines out by adding semi colons:
<div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"> </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
; __dbk_fcall_wrapper @2 ; __dbk_fcall_wrapper
; dbkFCallWrapperAddr @1 ; dbkFCallWrapperAddr
<div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"><div class="jive-quote"> </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
4) then use implib
"implib -c numemmgr.lib memmgr.def"
6) now rename your "memmgr.lib" to "oldmemmgr.lib"
7) "numemmgr.lib" to "memmgr.lib"
8) rebuild your application and the problem should have disappeared.
 
Yilmaz Yoru


Posts: 167
Registered: 1/1/03
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 19, 2015 11:56 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Thanks but it seems that this doesnt work on my CX 10 Seatle, I also coppied that new memmgr.lib to lib/win32 directory in to both debug & release folders.
I dont have XE8 too :(
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2015 10:52 AM   in response to: Yilmaz Yoru in response to: Yilmaz Yoru
El 20/10/15 a las 8:56, Yilmaz Yoru escribió:
Thanks but it seems that this doesnt work on my CX 10 Seatle, I also coppied that new memmgr.lib to lib/win32 directory in to both debug & release folders.
I dont have XE8 too :(

the file must be in the release folder only. Delete it from the debug
folder.

Tmas Csabina has uploaded the XE8 lib file to the attachments group.

Goran Ekstrom

Posts: 149
Registered: 1/10/04
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 5, 2015 10:09 AM   in response to: Petr Vykouk in response to: Petr Vykouk
Copying memmgr.lib from XE8 to Seattle also seems to work.
Petr Vykouk

Posts: 42
Registered: 6/4/00
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 5, 2015 12:04 PM   in response to: Petr Vykouk in response to: Petr Vykouk
thanks
Tamas Csabina

Posts: 13
Registered: 11/14/11
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2015 6:27 AM   in response to: Petr Vykouk in response to: Petr Vykouk
Copying memmgr.lib from XE8 to Seattle also seems to work.
I can confirm, this was a solution for me as well.

Edit:
For those of you don't have XE8, here is the file from my XE8 install:
https://forums.embarcadero.com/thread.jspa?threadID=118322&tstart=0

Just overwrite the one in c:\Program Files (x86)\Embarcadero\Studio\17.0\lib\win32\release\
Yilmaz Yoru


Posts: 167
Registered: 1/1/03
Re: exe from CX10 is dynamically linked to BORLNDMM.DLL with classic compiler  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 21, 2015 12:12 AM   in response to: Tamas Csabina in response to: Tamas Csabina
Tamas Csabina wrote:
Copying memmgr.lib from XE8 to Seattle also seems to work.
I can confirm, this was a solution for me as well.

Edit:
For those of you don't have XE8, here is the file from my XE8 install:
https://forums.embarcadero.com/thread.jspa?threadID=118322&tstart=0

Just overwrite the one in c:\Program Files (x86)\Embarcadero\Studio\17.0\lib\win32\release\

--
Oh thanks for the attachment works fine here
--

Yilmaz Yoru
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02