Debug Error! 
Author Message
 Debug Error!

Hi,

I got the following error while trying to run my program.

--------------------------------------------
Debug Error!

Program: ...
DAMAGE: before Normal block (#34) at 0X008A002C
--------------------------------------------

  Then I re-tried, clicked on debug and got:
--------------------------------------------
 User breakpoint called from code at 0X413fc9

On the call stack there was:
--------------------------------------------
_free_dbg(void * 0x008a002c, int 1) line 1027 + 60 bytes
operator delete(void * 0x008a002c) line 49 + 16 bytes
clssTreeBlx::~clssTreeBlx() line 728 + 18 bytes
main() line 299 + 15 bytes
mainCRTStartup() line 206 + 25 bytes
KERNEL32! bff8b537()
KERNEL32! bff8b3e9()
KERNEL32! bff89dac()

On the Register's windows I got:
--------------------------------------------

 EAX = 00000001 EBX = 00570000
 ECX = 80005978 EDX = 80005970
 ESI = 0043AC1F EDI = 0067DEB4
 EIP = 00413FC9 ESP = 0067DE08
 EBP = 0067DE18 EFL = 00000246
 CS = 015F DS = 0167 ES = 0167
 SS = 0167 FS = 2C5F GS = 0000 OV=0
 UP=0 EI=1 PL=0 ZR=1 AC=0 PE=1 CY=0
 ST0 = +0.00000000000000000e+0000
 ST1 = +0.00000000000000000e+0000
 ST2 = +0.00000000000000000e+0000
 ST3 = +0.00000000000000000e+0000
 ST4 = +0.00000000000000000e+0000
 ST5 = +0.00000000000000000e+0000
 ST6 = +3.90625000000000000e-0003
 ST7 = +5.08007812500000000e+0002
 CTRL = 027F STAT = 0020 TAGS = FFFF
 EIP = 0040F5B5 CS = 015F DS = 0167
 EDO = 0067DE08

When I went up the call stack the pointing arrow pointed to the last closing
line of main().

How do I interpret/solve this this problem?

Thank you
Camilo



Tue, 14 May 2002 03:00:00 GMT  
 Debug Error!
When the destructor for clssTreeBlx called delete, presumably on one of its
members, the heap manager noticed that the header for the allocation block
was trashed.  This means some code of yours wrote out the normal bounds.
You have a bug.  It may appear in release builds as a random crash, random
being key.

To diagnose it, look at what item is being deleted and check who's writing
the the memory before it.  Either
1) by reading your code or
2) by setting a data breakpoint at the address that's being trashed.


Quote:
> Hi,

> I got the following error while trying to run my program.

> --------------------------------------------
> Debug Error!

> Program: ...
> DAMAGE: before Normal block (#34) at 0X008A002C
> --------------------------------------------

>   Then I re-tried, clicked on debug and got:
> --------------------------------------------
>  User breakpoint called from code at 0X413fc9

> On the call stack there was:
> --------------------------------------------
> _free_dbg(void * 0x008a002c, int 1) line 1027 + 60 bytes
> operator delete(void * 0x008a002c) line 49 + 16 bytes
> clssTreeBlx::~clssTreeBlx() line 728 + 18 bytes
> main() line 299 + 15 bytes
> mainCRTStartup() line 206 + 25 bytes
> KERNEL32! bff8b537()
> KERNEL32! bff8b3e9()
> KERNEL32! bff89dac()

> On the Register's windows I got:
> --------------------------------------------

>  EAX = 00000001 EBX = 00570000
>  ECX = 80005978 EDX = 80005970
>  ESI = 0043AC1F EDI = 0067DEB4
>  EIP = 00413FC9 ESP = 0067DE08
>  EBP = 0067DE18 EFL = 00000246
>  CS = 015F DS = 0167 ES = 0167
>  SS = 0167 FS = 2C5F GS = 0000 OV=0
>  UP=0 EI=1 PL=0 ZR=1 AC=0 PE=1 CY=0
>  ST0 = +0.00000000000000000e+0000
>  ST1 = +0.00000000000000000e+0000
>  ST2 = +0.00000000000000000e+0000
>  ST3 = +0.00000000000000000e+0000
>  ST4 = +0.00000000000000000e+0000
>  ST5 = +0.00000000000000000e+0000
>  ST6 = +3.90625000000000000e-0003
>  ST7 = +5.08007812500000000e+0002
>  CTRL = 027F STAT = 0020 TAGS = FFFF
>  EIP = 0040F5B5 CS = 015F DS = 0167
>  EDO = 0067DE08

> When I went up the call stack the pointing arrow pointed to the last
closing
> line of main().

> How do I interpret/solve this this problem?

> Thank you
> Camilo



Fri, 17 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. strange debug error

2. Debug error

3. DEBUG ERROR!!!!

4. Debug Error

5. debug error on win2k

6. MFC with GIST library debug errors

7. SOS for try ..catch (debug error)

8. Debug Error when calling a destructor from a class that's in a DLL

9. Debug Error

10. Debug Error into DBHHEAP.C

11. debug error

12. Debug Error in chkesp.c

 

 
Powered by phpBB® Forum Software