🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4720

Does a BCB-DLL allocate memory when it loads?

#4720
From: Matthias Schuppe
Date: Tue, 13 Dec 2005 23:01
22 lines
1968 bytes
I wrote a DLL in BCB 6 Enterprise which uses the VCL (e.g. ADO, Indy,
etc.). This DLL should be included into a special industrial testing
software. When I do so, in the testing software an exception occurs
(floating divide by zero).

I tried to deactivate all function calls of my DLL, only "LoadLibrary"
is executed. The error is already there. The manufacturer of the
testing software says that my DLL allocates memory when it loads. A
part of memory which is used by the testing software seems to be
overwritten by loading my DLL.

I tried to change the image base adress in project options from
0x00400000 to 0x40000000 or 0x60000000, but it did't take an effect.

Is ist possible to tell C++ Builder to allocate memory at another
adress?

Do you have an idea to solve this problem?

Thank you very much for yur help!

Matthias Schuppe
Technical Details
Message-ID: <1134513030.014478.100960@f14g2000cwb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5b10742b7a1d59d3,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: "Matthias Schuppe" <matthias2378@gmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Does a BCB-DLL allocate memory when it loads?
Date: 13 Dec 2005 15:01:00 -0800
Organization: http://groups.google.com
Lines: 23
Message-ID: <1134513030.014478.100960@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: 213.7.219.34
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1134514865 7169 127.0.0.1 (13 Dec 2005 23:01:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 13 Dec 2005 23:01:05 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.2 (like Gecko),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=213.7.219.34;
   posting-account=vbpoEA0AAAASAAIOV_S98BHLQC06R3Qn