Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String Manipulation Pin
Aescleal9-Aug-10 21:54
Aescleal9-Aug-10 21:54 
GeneralRe: String Manipulation Pin
ThatsAlok10-Aug-10 1:32
ThatsAlok10-Aug-10 1:32 
GeneralRe: String Manipulation Pin
Aescleal10-Aug-10 2:20
Aescleal10-Aug-10 2:20 
Questionmax number of rows in ListControl Pin
Sakhalean9-Aug-10 19:11
Sakhalean9-Aug-10 19:11 
AnswerRe: max number of rows in ListControl Pin
«_Superman_»9-Aug-10 19:43
professional«_Superman_»9-Aug-10 19:43 
QuestionWhat does this runtime error exactly mean? Pin
includeh109-Aug-10 16:37
includeh109-Aug-10 16:37 
AnswerRe: What does this runtime error exactly mean? Pin
Peter_in_27809-Aug-10 16:57
professionalPeter_in_27809-Aug-10 16:57 
AnswerRe: What does this runtime error exactly mean? Pin
Aescleal9-Aug-10 19:33
Aescleal9-Aug-10 19:33 
The error message means exactly what it says - whatever instruction the processor was executing when the instruction pointer hit 0x00123456 caused the problem. The problem was that it tried reading something at an address of 0x00654321 which wasn't a lump of memory it could read.

So it could be loads of things:

- you tried casting something you shouldn't to a pointer and the variable you cast had a value of 0x00654321
- a pointer contained a value of 0x00654321 and you tried dereferencing it
- you scribbled all over memory using memset and managled a pointer
- you scribbled all over memory and managed to corrupt a thread's stack
- you're trying to use memory that you've freed
- you're accessing a local variable after it's gone out of scope

Whatever it is it's pretty insanitary and might have the unfortunate effect of moving around in memory when you're trying to find it. You might even think you've fixed it when all you've done is move it so that when a customer or professor runs it they find it Smile | :)

To stop this sort of thing happening:

- don't manually manage memory
- don't manually manipulate memory (memset, memcpy, that sort of thing)
- don't use pointers

Cheers,

Ash
QuestionHow to display vertical text using DrawText Pin
Mary Chennai9-Aug-10 8:41
Mary Chennai9-Aug-10 8:41 
QuestionRe: How to display vertical text using DrawText Pin
David Crow9-Aug-10 9:33
David Crow9-Aug-10 9:33 
Questionselect the home directory for the .ini files Pin
dilara semerci9-Aug-10 4:25
dilara semerci9-Aug-10 4:25 
AnswerRe: select the home directory for the .ini files Pin
David Crow9-Aug-10 5:46
David Crow9-Aug-10 5:46 
GeneralRe: select the home directory for the .ini files Pin
dilara semerci9-Aug-10 20:12
dilara semerci9-Aug-10 20:12 
AnswerRe: select the home directory for the .ini files Pin
David Crow10-Aug-10 3:30
David Crow10-Aug-10 3:30 
Question[Solved]How to parse a URL in C++ using sscanf() [modified] Pin
Elsie9-Aug-10 4:05
Elsie9-Aug-10 4:05 
AnswerRe: How to parse a URL in C++ using sscanf() Pin
Maximilien9-Aug-10 4:10
Maximilien9-Aug-10 4:10 
QuestionRe: How to parse a URL in C++ using sscanf() Pin
David Crow9-Aug-10 4:12
David Crow9-Aug-10 4:12 
AnswerRe: How to parse a URL in C++ using sscanf() Pin
Elsie9-Aug-10 4:16
Elsie9-Aug-10 4:16 
QuestionStub dll fails to find entry point [modified] Pin
VentsyV9-Aug-10 4:04
VentsyV9-Aug-10 4:04 
AnswerRe: Stub dll fails to find entry point Pin
Richard MacCutchan9-Aug-10 22:16
mveRichard MacCutchan9-Aug-10 22:16 
QuestionCascading specific windows in a MFC MDI application Pin
Elsie9-Aug-10 3:56
Elsie9-Aug-10 3:56 
AnswerRe: Cascading specific windows in a MFC MDI application Pin
Niklas L9-Aug-10 8:09
Niklas L9-Aug-10 8:09 
QuestionCombo Box Pin
dilara semerci9-Aug-10 3:03
dilara semerci9-Aug-10 3:03 
AnswerRe: Combo Box Pin
Maximilien9-Aug-10 4:08
Maximilien9-Aug-10 4:08 
GeneralRe: Combo Box Pin
dilara semerci9-Aug-10 4:19
dilara semerci9-Aug-10 4:19 

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.