Click here to Skip to main content
16,012,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: #$%%^^% EVC++! - why bitmap won't save? Pin
Nelek29-May-07 1:28
protectorNelek29-May-07 1:28 
QuestionWhy dialog doesn't repond to tab key Pin
LiYS28-May-07 23:38
LiYS28-May-07 23:38 
AnswerRe: Why dialog doesn't repond to tab key Pin
nitin328-May-07 23:46
nitin328-May-07 23:46 
AnswerRe: Why dialog doesn't repond to tab key Pin
Hamid_RT29-May-07 0:08
Hamid_RT29-May-07 0:08 
GeneralRe: Why dialog doesn't repond to tab key Pin
Rajesh R Subramanian29-May-07 4:01
professionalRajesh R Subramanian29-May-07 4:01 
Questionmemory heap problem Pin
Moonis Ahmed28-May-07 23:27
Moonis Ahmed28-May-07 23:27 
AnswerRe: memory heap problem Pin
Roger Stoltz28-May-07 23:40
Roger Stoltz28-May-07 23:40 
AnswerRe: memory heap problem Pin
Matthew Faithfull28-May-07 23:48
Matthew Faithfull28-May-07 23:48 
Hi,
This looks like a memory overrun, probably on a buffer somewhere. In Debug VC++ pads out every allocation of memory you make with some extra bytes which can be used to see if you've overun the end of an array somewhere. It should report this but it doesn't always especially if you leak, i.e. don't delete, the whole array. In Release these extra bytes are missing and the same overrun will damage real data or code and you may see different behaviour. This is all a bit general but I dont know what your code looks like;)
To be a bit more specific RTLFreeHeap is a built in Windows function that gets called when you call delete in your code. The 'Invalid Address' error means that it's trying to delete a pointer that was not the result of a new, could be uninitialised, or more often one that has already been deleted, or points at deleted memory. Check for duplicate delete calls and buffer overruns, remember if you're new to C++ that confusingly the lest element of int array[10]; is array[9] because the first element is array[0].
The best way to pick up memory issues like this in a small app is to run only parts of it, e.g start up and shutdown code only initially and keep adding more small sections back in until the problem appears in Release. You'll soon spot it.Big Grin | :-D

Nothing is exactly what it seems but everything with seems can be unpicked.

AnswerRe: memory heap problem Pin
Stephen Hewitt29-May-07 14:01
Stephen Hewitt29-May-07 14:01 
Questionvideo streaming Pin
tyagineha28-May-07 23:13
tyagineha28-May-07 23:13 
AnswerRe: video streaming Pin
Roger Stoltz28-May-07 23:34
Roger Stoltz28-May-07 23:34 
AnswerRe: video streaming [modified] Pin
Amar Sutar28-May-07 23:55
Amar Sutar28-May-07 23:55 
QuestionRe: video streaming Pin
tyagineha29-May-07 0:46
tyagineha29-May-07 0:46 
QuestionDetecting the end of the file Pin
Aint28-May-07 23:01
Aint28-May-07 23:01 
AnswerRe: Detecting the end of the file Pin
Moonis Ahmed28-May-07 23:37
Moonis Ahmed28-May-07 23:37 
QuestionRe: Detecting the end of the file Pin
David Crow29-May-07 4:04
David Crow29-May-07 4:04 
AnswerRe: Detecting the end of the file Pin
Aint29-May-07 17:01
Aint29-May-07 17:01 
QuestionRe: Detecting the end of the file Pin
David Crow30-May-07 2:39
David Crow30-May-07 2:39 
Question[Message Deleted] Pin
garfield18528-May-07 22:36
garfield18528-May-07 22:36 
AnswerRe: Cannot write in an Edit Box Pin
Naveen28-May-07 22:46
Naveen28-May-07 22:46 
GeneralRe: Cannot write in an Edit Box Pin
garfield18528-May-07 22:48
garfield18528-May-07 22:48 
GeneralRe: Cannot write in an Edit Box Pin
Naveen28-May-07 23:03
Naveen28-May-07 23:03 
AnswerRe: Cannot write in an Edit Box Pin
_AnsHUMAN_ 28-May-07 22:49
_AnsHUMAN_ 28-May-07 22:49 
GeneralRe: Cannot write in an Edit Box Pin
garfield18528-May-07 22:58
garfield18528-May-07 22:58 
GeneralRe: Cannot write in an Edit Box Pin
garfield18528-May-07 23:09
garfield18528-May-07 23:09 

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.