Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalunresolved external symbol Pin
TolTol12-Jan-04 9:32
TolTol12-Jan-04 9:32 
GeneralRe: unresolved external symbol Pin
Jörgen Sigvardsson12-Jan-04 9:53
Jörgen Sigvardsson12-Jan-04 9:53 
GeneralRe: unresolved external symbol Pin
TolTol12-Jan-04 11:50
TolTol12-Jan-04 11:50 
QuestionIs there a way to detect a debug build? Pin
toddbrooks12-Jan-04 9:04
toddbrooks12-Jan-04 9:04 
AnswerRe: Is there a way to detect a debug build? Pin
Neville Franks12-Jan-04 9:35
Neville Franks12-Jan-04 9:35 
AnswerRe: Is there a way to detect a debug build? Pin
LizardWiz12-Jan-04 11:25
LizardWiz12-Jan-04 11:25 
GeneralRe: Is there a way to detect a debug build? Pin
toddbrooks12-Jan-04 11:31
toddbrooks12-Jan-04 11:31 
GeneralProblem Deleting Pointer Pin
DruOfGov12-Jan-04 8:18
DruOfGov12-Jan-04 8:18 
I have some code that I am having problems with. In the destructor. It is pretty straight forward:
[quote]
{
if( m_pData != NULL )
{
delete [] m_pData;
}
}
[/quote]

I am compiling and running this through MS Visual C++ 6.0. When I create a debug version, and then step through it, it fails at the delete [] m_pData line. I get the following error:
[quote]
"Debug Error!
Program: D:\MyProg\Debug\MyProg.exe
DAMAGE: after Normal block (#55) at 0x04730068.
(Press Retry to debug the application)"
[/quote]

I then hit retry, and I recieve:
[quote]
"User Breakpoint called from code at 0x40cecf"
[/quote]

The debugger is now pointing to:
[quote]
if (!CheckBytes(pbData(pHead) + pHead->nDataSize, _bNoMansLandFill, nNoMansLandSize))
_RPT3(_CRT_ERROR, "DAMAGE: after %hs block (#%d) at 0x%08X.\n",
szBlockUseName[_BLOCK_TYPE(pHead->nBlockUse)],
pHead->lRequest,
(BYTE *) pbData(pHead));
[/quote]
in VC98\CRT\SRC\DBGHEAP.C

When I switch to build a release version, I do not get this error.

What is going on, and how can I fix this.

-Drew
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 8:33
professionalJoe Woodbury12-Jan-04 8:33 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 8:51
DruOfGov12-Jan-04 8:51 
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 10:02
professionalJoe Woodbury12-Jan-04 10:02 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 10:14
DruOfGov12-Jan-04 10:14 
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 10:34
professionalJoe Woodbury12-Jan-04 10:34 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 10:38
DruOfGov12-Jan-04 10:38 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 10:41
DruOfGov12-Jan-04 10:41 
GeneralRe: Problem Deleting Pointer Pin
Joe Woodbury12-Jan-04 12:01
professionalJoe Woodbury12-Jan-04 12:01 
GeneralRe: Problem Deleting Pointer Pin
DruOfGov12-Jan-04 16:12
DruOfGov12-Jan-04 16:12 
GeneralRecompiling only modified files in vc++ environment Pin
haritadala12-Jan-04 7:53
haritadala12-Jan-04 7:53 
GeneralRe: Recompiling only modified files in vc++ environment Pin
Michael Dunn12-Jan-04 7:57
sitebuilderMichael Dunn12-Jan-04 7:57 
GeneralGateWay IP address Pin
gfds12-Jan-04 7:37
gfds12-Jan-04 7:37 
GeneralRe: GateWay IP address Pin
Jijo.Raj12-Jan-04 8:04
Jijo.Raj12-Jan-04 8:04 
Questionhow to open a closed output file(.CSV ) Pin
mr200312-Jan-04 7:32
mr200312-Jan-04 7:32 
AnswerRe: how to open a closed output file(.CSV ) Pin
Jijo.Raj12-Jan-04 7:51
Jijo.Raj12-Jan-04 7:51 
GeneralClosing all browser windows Pin
Vermithrax12-Jan-04 6:45
Vermithrax12-Jan-04 6:45 
GeneralRe: Closing all browser windows Pin
Ernesto D.12-Jan-04 11:51
Ernesto D.12-Jan-04 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.