This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Heap bug, I'm going insane!


Heap bug, I'm going insane!

Postby efortier » Jul 15, 2004 @ 10:02pm

Hi all,

I've been trying to corner this bug I'm having for two weeks straight now, and I just can't find it.

My game runs fine. However, whenever I use the
_CRTDBG_CHECK_ALWAYS_DF heap check flag, I get this error:

HEAP[7errors.exe]: Number of free blocks in arena (43) does not match number in the free lists (44)

The numbers usually vary, sometimes <50, sometimes >6000.

The problem is that VisualStudio .NET breaks into the heap check function, not my code and I get no other information aside from what is mentioned above. No file or line number, nothing. Just the heap error in the output tab.

To make matter worse the bug doesn't occur after a specific action but at random, suggesting some kind of memory corruption.

If I don't use crtdbg at all I get no error report from VisualStudio or eVC, and the game doesn't crash, but I just fear the bug is there and will abide by Newton's law and popup at an innapropriate time.

If there are any debugging gurus out there, I'd appreciate a few hints as to what I could do to catch this sucker.

As a sidenote, BoundChecker doesn't report anything out of the ordinary, even with FinalCheck enabled.

Thanks. I have to finish this by sunday, and I tried all the tricks I could think of.

--Eric
User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby refractor » Jul 16, 2004 @ 7:04am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby efortier » Jul 16, 2004 @ 7:40am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Pejo Software - Per » Jul 16, 2004 @ 6:31pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby fzammetti » Jul 16, 2004 @ 8:00pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby efortier » Jul 16, 2004 @ 9:15pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby egarayblas » Jul 17, 2004 @ 1:54am

-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby ppcStudios » Jul 17, 2004 @ 3:33am

Yep, good to see you back Eric! :)
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby efortier » Jul 17, 2004 @ 9:05pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron