user-defined new-Op is not used

K

kartoffelsack

Hi,

I'm trying to hunt down an memory-leak for days now.
For this I'm using operated new- /delete-ops (based on provided code in
'thinking c++').

Principally they are working fine, but when I compile my project (as in
reality) as a DLL, my user-defined new/delete-ops are not used. I have a
exe-Project, that uses mostly the same code as the DLL-project, where it
works. In a small test-DLL it workes also. So I don't thing it's a
DLL-problem.

Has anybody a clue, why it can happen that my operators are not used in
the hole project?

Using Borland C++Builder 5
 
V

Victor Bazarov

kartoffelsack said:
I'm trying to hunt down an memory-leak for days now.
For this I'm using operated new- /delete-ops (based on provided code in
'thinking c++').

Principally they are working fine, but when I compile my project (as in
reality) as a DLL, my user-defined new/delete-ops are not used. I have
a exe-Project, that uses mostly the same code as the DLL-project, where
it works. In a small test-DLL it workes also. So I don't thing it's a
DLL-problem.

Lemme see... If you compile it as an EXE, it works. If you compile it
as a DLL, it doesn't (never mind the small test stuff). And you think it
is not a DLL-problem? What other problem might it be? Something else in
your DLL project different from that EXE? Don't answer that. It's off-
topic here.
Has anybody a clue, why it can happen that my operators are not used in
the hole project?

Try a newsgroup where DLLs are on topic, like a newsgroup for the compiler
you're using or a newsgroup for the OS.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top