Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWriting a filesystem driver? Pin
clintsinger15-Jun-02 6:16
clintsinger15-Jun-02 6:16 
AnswerRe: Writing a filesystem driver? Pin
Amit Dey15-Jun-02 12:00
Amit Dey15-Jun-02 12:00 
AnswerRe: Writing a filesystem driver? Pin
Mike Nordell16-Jun-02 5:27
Mike Nordell16-Jun-02 5:27 
GeneralRe: Writing a filesystem driver? Pin
clintsinger16-Jun-02 13:21
clintsinger16-Jun-02 13:21 
GeneralRe: Writing a filesystem driver? Pin
Mike Nordell17-Jun-02 17:49
Mike Nordell17-Jun-02 17:49 
GeneralRe: Writing a filesystem driver? Pin
18-Jun-02 10:20
suss18-Jun-02 10:20 
GeneralHeaps and DisableHeapLookAside Pin
stereo15-Jun-02 5:58
stereo15-Jun-02 5:58 
GeneralRe: Heaps and DisableHeapLookAside Pin
Mike Nordell16-Jun-02 5:52
Mike Nordell16-Jun-02 5:52 
You also have to monitor HeapReAlloc in addition to HeapFree.

Before jumping to conclusions, have you tried this with a "checked build" and/or using e.g Purify or something similar to really rule out the possibility that your application is overwriting some heap memory it doesn't own? If you're longing for an adventure you might even replace the malloc/free implementation functions from the CRT with your own functions that use a private heap.

If it is beyond all dubt ruled out that the a memory overflow bug is introduced by your app, one can only conclude that it has to be a bug in the NT heap manager and you should notify MS of this ASAP.

If this is an MS bug I could guess that they don't have a (nasty enough) regression test for HeapReAlloc and the heap lookaside combination (which I personaly think is a fairly reasonable guess).

The following assumes the bug is not in your code:

My real question is why is this happening to begin with

Bugs in the heap manager implementation.

what does
DisableHeapLookAside do to cause the problem to go away?


Answering that question would probably involve explaining how their NT4sp4+ and NT5+ heap manager works in such a detailed way that one could write it oneself. That would probably violate some kind of "trade secrets". Smile | :)


Please check HeapReAlloc also and report back. This can become interesting (unless it's a bug in your code)!
GeneralRe: Heaps and DisableHeapLookAside Pin
stereo16-Jun-02 6:12
stereo16-Jun-02 6:12 
GeneralRe: Heaps and DisableHeapLookAside Pin
Mike Nordell16-Jun-02 6:42
Mike Nordell16-Jun-02 6:42 
GeneralRe: Heaps and DisableHeapLookAside Pin
stereo16-Jun-02 6:50
stereo16-Jun-02 6:50 
QuestionHow do i put a new line in an Edit control? (non-MFC) Pin
redeemer15-Jun-02 6:01
redeemer15-Jun-02 6:01 
AnswerRe: How do i put a new line in an Edit control? (non-MFC) Pin
Michael Dunn15-Jun-02 5:59
sitebuilderMichael Dunn15-Jun-02 5:59 
AnswerRe: How do i put a new line in an Edit control? (non-MFC) Pin
Max Santos15-Jun-02 6:26
Max Santos15-Jun-02 6:26 
Generalfork() and pipe() problem Pin
ChiYung15-Jun-02 5:43
ChiYung15-Jun-02 5:43 
QuestionChange my window width/height? Pin
15-Jun-02 5:08
suss15-Jun-02 5:08 
AnswerRe: Change my window width/height? Pin
Hans Ruck15-Jun-02 5:20
Hans Ruck15-Jun-02 5:20 
AnswerRe: Change my window width/height? Pin
Ravi Bhavnani15-Jun-02 5:30
professionalRavi Bhavnani15-Jun-02 5:30 
GeneralRe: Change my window width/height? Pin
15-Jun-02 6:09
suss15-Jun-02 6:09 
GeneralRe: Change my window width/height? (solved) Pin
15-Jun-02 11:00
suss15-Jun-02 11:00 
GeneralRe: Resize and maximize button is wrong? Pin
15-Jun-02 6:15
suss15-Jun-02 6:15 
GeneralIStream question Pin
Hans Ruck15-Jun-02 4:27
Hans Ruck15-Jun-02 4:27 
GeneralRe: IStream question Pin
[James Pullicino]15-Jun-02 8:00
[James Pullicino]15-Jun-02 8:00 
GeneralSpy++ Pin
vikramlinux15-Jun-02 1:04
vikramlinux15-Jun-02 1:04 
GeneralRe: Spy++ Pin
Paul Selormey15-Jun-02 1:15
Paul Selormey15-Jun-02 1:15 

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.