Home » U++ Library support » U++ Core » MemoryBreakpoint definition?
MemoryBreakpoint definition? [message #16276] |
Thu, 05 June 2008 17:14 |
|
I've successfully extracted the Vector class from Ultimate++, but ran into a problem in App.cpp. As of revision 279, MemoryBreakpoint is only defined (in heapdbg.cpp) if HEAPDBG and UPP_HEAP are defined. But, in App.cpp, MemoryBreakpoint is used if UPP_HEAD and _DEBUG are defined.
Of course, changing:
#if defined(_DEBUG) && defined(UPP_HEAP)
to:
#if defined(_DEBUG) && defined(HEAPDBG) && defined(UPP_HEAP)
fixes the problem.
Is HEAPDBG automatically set on DEBUG builds?
a3e77f341aa1d91d0388a0c8b786e8b5
[Updated on: Thu, 05 June 2008 17:15] Report message to a moderator
|
|
|
|
Re: MemoryBreakpoint definition? [message #16328 is a reply to message #16277] |
Sun, 08 June 2008 06:44 |
|
luzr wrote on Thu, 05 June 2008 10:58 | I am not quite sure how is MemoryBreakpoint related to extracting Vector
|
Extract may have been a bad choice of words. I copied every file required to compile vcont.cpp. App.cpp happened to be one of those files. I need to go back an remove any unused source files; that's the easy part though.
Quote: | Anyway, yes, it is defined/required in debug.
|
That would explain it then. Thanks.
a3e77f341aa1d91d0388a0c8b786e8b5
[Updated on: Sun, 08 June 2008 06:45] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 07 11:12:17 CEST 2024
Total time taken to generate the page: 0.05663 seconds
|