Click here to Skip to main content
16,011,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _CrtIsValidHeapPointer Pin
Bob Stanneveld25-May-05 21:16
Bob Stanneveld25-May-05 21:16 
GeneralProblem in handling menu :( Pin
nripun24-May-05 4:07
nripun24-May-05 4:07 
QuestionFilmstrip control? Pin
Obliterator24-May-05 2:53
Obliterator24-May-05 2:53 
GeneralDynamic memomory error Pin
evgumin24-May-05 2:26
evgumin24-May-05 2:26 
GeneralRe: Dynamic memomory error Pin
toxcct24-May-05 2:30
toxcct24-May-05 2:30 
GeneralRe: Dynamic memory error Pin
evgumin24-May-05 4:25
evgumin24-May-05 4:25 
GeneralRe: Dynamic memory error Pin
wb24-May-05 4:41
wb24-May-05 4:41 
GeneralRe: Dynamic memory error Pin
doublebug24-May-05 9:22
doublebug24-May-05 9:22 
"Unhandled exception at 0x77f767cd in SDIStart.exe: User breakpoint."
You can see debug output there should be some explanation why that happened.

Any way it seems some heap corruption occured.

You can use Page Heap OS feature to try to catch where this corruption happens.
To enable this feature you should use Global Flags Editor.
Also you can take a look to this article http://www.codeproject.com/debug/cdbntsd3.asp[^]

See http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/b6af1963-3b75-42f2-860f-aff9354aefde.mspx[^]
for more information about gflags utility.

To enable Page Heap and other debugging features without gflags.exe utility
add to the registry the following entries:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SDIStart.exe]
"GlobalFlag"=dword:103099f3
"VerifierFlags"=dword:000d3ff7
"PageHeapFlags"=dword:00000003

That works for Windows XP

These settings will catch allocated memory overrun.
Windows XP also can provide memory underrun.

I always debugging my programs using this feature.

WBR
Henry
GeneralRe: Dynamic memomory error Pin
Cedric Moonen24-May-05 2:56
Cedric Moonen24-May-05 2:56 
GeneralRe: Dynamic memomory error Pin
evgumin24-May-05 4:42
evgumin24-May-05 4:42 
GeneralPopup menu problem ? still need help.. Pin
ddmcr24-May-05 1:56
ddmcr24-May-05 1:56 
GeneralRe: Popup menu problem ??????????? Pin
«_Superman_»24-May-05 3:09
professional«_Superman_»24-May-05 3:09 
GeneralRe: Popup menu problem ??????????? Pin
ddmcr24-May-05 3:14
ddmcr24-May-05 3:14 
GeneralRe: Popup menu problem ? still need help.. Pin
ddmcr24-May-05 6:08
ddmcr24-May-05 6:08 
GeneralPropertySheet tab order problem Pin
Marc Soleda24-May-05 1:24
Marc Soleda24-May-05 1:24 
QuestionWhat this for Pin
rain71124-May-05 0:07
rain71124-May-05 0:07 
AnswerRe: What this for Pin
toxcct24-May-05 0:16
toxcct24-May-05 0:16 
GeneralRe: What this for Pin
rain71124-May-05 2:34
rain71124-May-05 2:34 
GeneralRe: What this for Pin
toxcct24-May-05 2:38
toxcct24-May-05 2:38 
GeneralRe: What this for Pin
rain71124-May-05 4:08
rain71124-May-05 4:08 
GeneralRe: What this for Pin
toxcct24-May-05 4:14
toxcct24-May-05 4:14 
GeneralRe: What this for Pin
rain71124-May-05 4:21
rain71124-May-05 4:21 
GeneralRe: What this for Pin
toxcct24-May-05 4:29
toxcct24-May-05 4:29 
GeneralRe: What this for Pin
rain71124-May-05 19:17
rain71124-May-05 19:17 
GeneralRe: What this for Pin
toxcct24-May-05 19:59
toxcct24-May-05 19:59 

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.