Click here to Skip to main content
15,892,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
Jens Doose16-Jul-03 20:21
Jens Doose16-Jul-03 20:21 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
David Crow17-Jul-03 5:49
David Crow17-Jul-03 5:49 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
Jens Doose17-Jul-03 19:34
Jens Doose17-Jul-03 19:34 
GeneralRe: SHBrowseForFolder works only one time when connecting to SQL server in between when using a manifest file Pin
David Crow18-Jul-03 5:54
David Crow18-Jul-03 5:54 
GeneralWM_CONTEXTMENU Pin
pranavamhari16-Jul-03 7:34
pranavamhari16-Jul-03 7:34 
QuestionMFC - How to print ? Pin
Exim16-Jul-03 6:55
Exim16-Jul-03 6:55 
GeneralHeapValidate question Pin
Anonymous16-Jul-03 6:27
Anonymous16-Jul-03 6:27 
GeneralRe: HeapValidate question Pin
Mike Dimmick16-Jul-03 6:48
Mike Dimmick16-Jul-03 6:48 
You've either overrun or underrun a buffer, which has trashed a heap data structure which it uses to keep track of what blocks are allocated and where they are.

I suggest using the PageHeap tool from Microsoft's Application Compatibility Toolkit[^] to turn on the 'full-page heap'. This causes each heap allocation to happen at the end of a memory page, with the next page being reserved as a guard page. As soon as the overrun occurs, your program will get an access violation.

If the problem is an underrun, there's another option for putting the allocation at the beginning of a fresh page and keeping the page before as a guard page.

If the problem is in a C runtime-allocated block (i.e. allocated with malloc() or new) this won't necessarily show the problem immediately, as the CRT does its own memory allocation. Use the CRTDBG.H facilities to find your problem.
GeneralRe: HeapValidate question Pin
Anonymous16-Jul-03 7:09
Anonymous16-Jul-03 7:09 
GeneralRe: HeapValidate question Pin
Peter Weyzen16-Jul-03 7:52
Peter Weyzen16-Jul-03 7:52 
GeneralRe: HeapValidate question Pin
Mike Dimmick16-Jul-03 22:28
Mike Dimmick16-Jul-03 22:28 
QuestionGetting the same value everytime?? Pin
johnstonsk16-Jul-03 6:01
johnstonsk16-Jul-03 6:01 
AnswerRe: Getting the same value everytime?? Pin
David Crow16-Jul-03 7:02
David Crow16-Jul-03 7:02 
AnswerRe: Getting the same value everytime?? Pin
Peter Weyzen16-Jul-03 7:58
Peter Weyzen16-Jul-03 7:58 
AnswerRe: Getting the same value everytime?? Pin
Ryan Binns16-Jul-03 17:33
Ryan Binns16-Jul-03 17:33 
GeneralEDID data, display driver Pin
oliver.hu16-Jul-03 5:19
oliver.hu16-Jul-03 5:19 
GeneralTemplates and functions Pin
Bernhard16-Jul-03 4:59
Bernhard16-Jul-03 4:59 
GeneralRe: Templates and functions Pin
Ryan Binns16-Jul-03 5:06
Ryan Binns16-Jul-03 5:06 
GeneralRe: Templates and functions Pin
Andrew Walker17-Jul-03 3:03
Andrew Walker17-Jul-03 3:03 
GeneralRe: Templates and functions Pin
Bernhard17-Jul-03 3:29
Bernhard17-Jul-03 3:29 
Generalmy solution (pretty neat i think) Pin
Bernhard17-Jul-03 4:14
Bernhard17-Jul-03 4:14 
Generalpolling for data on serial port Pin
butterbean73016-Jul-03 4:50
butterbean73016-Jul-03 4:50 
GeneralRe: polling for data on serial port Pin
John R. Shaw16-Jul-03 6:21
John R. Shaw16-Jul-03 6:21 
GeneralDisplay cad drawings Pin
BigBabyJesus16-Jul-03 4:09
BigBabyJesus16-Jul-03 4:09 
GeneralRe: Display cad drawings Pin
Ryan Binns16-Jul-03 4:21
Ryan Binns16-Jul-03 4:21 

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.