Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Convert a Float to a string Pin
VonHagNDaz17-Oct-07 7:09
VonHagNDaz17-Oct-07 7:09 
GeneralRe: How to Convert a Float to a string Pin
David Crow17-Oct-07 7:46
David Crow17-Oct-07 7:46 
GeneralRe: How to Convert a Float to a string Pin
ThatsAlok17-Oct-07 21:02
ThatsAlok17-Oct-07 21:02 
AnswerRe: How to Convert a Float to a string Pin
jhwurmbach17-Oct-07 6:29
jhwurmbach17-Oct-07 6:29 
QuestionRe: How to Convert a Float to a string Pin
David Crow17-Oct-07 6:40
David Crow17-Oct-07 6:40 
QuestionRegarding CreateRemoteThread Pin
ramana.g17-Oct-07 4:02
ramana.g17-Oct-07 4:02 
AnswerRe: Regarding CreateRemoteThread Pin
led mike17-Oct-07 4:19
led mike17-Oct-07 4:19 
GeneralRe: Regarding CreateRemoteThread Pin
Mike Dimmick17-Oct-07 6:46
Mike Dimmick17-Oct-07 6:46 
In other words they do no checking whatsoever on the start address parameter. When the remote thread starts the infrastructure will use a CALL instruction to call the supplied start address, and if you're lucky the processor will generate a page fault hardware exception straight away. The OS will turn that into an access violation exception since there's no suitable page mapping, it'll go looking for an exception handler, not find one, and call the process's unhandled exception filter. Typically that will kill the process.

If unlucky your address will point to some data and it'll run for a while before it encounters a bit pattern not matching a valid instruction, or the data being interpreted as code tries to touch invalid memory, or it trashes some other pointer in the real program code which causes a crash.

It's very difficult to examine a pointer to determine whether it really points to valid code, simply because the range of valid instructions is so vast. A human might be able to spot that the sequence of instructions doesn't make sense and deduce that it's really data, but building in a complete heuristic engine to work that out is not worthwhile.



DoEvents: Generating unexpected recursion since 1991

GeneralRe: Regarding CreateRemoteThread Pin
led mike17-Oct-07 7:03
led mike17-Oct-07 7:03 
AnswerRe: Regarding CreateRemoteThread Pin
Stephen Hewitt17-Oct-07 16:48
Stephen Hewitt17-Oct-07 16:48 
QuestionCHotKeyCtrl Pin
josip cagalj17-Oct-07 4:02
josip cagalj17-Oct-07 4:02 
Questionc Pin
Chandrasekharan P17-Oct-07 3:48
Chandrasekharan P17-Oct-07 3:48 
AnswerRe: c Pin
Maximilien17-Oct-07 3:57
Maximilien17-Oct-07 3:57 
AnswerRe: c Pin
#realJSOP17-Oct-07 3:59
professional#realJSOP17-Oct-07 3:59 
GeneralRe: c Pin
Chandrasekharan P17-Oct-07 4:04
Chandrasekharan P17-Oct-07 4:04 
GeneralRe: c Pin
ThatsAlok17-Oct-07 20:46
ThatsAlok17-Oct-07 20:46 
QuestionRe: c Pin
David Crow17-Oct-07 4:10
David Crow17-Oct-07 4:10 
AnswerRe: c Pin
Chandrasekharan P17-Oct-07 5:04
Chandrasekharan P17-Oct-07 5:04 
QuestionRe: c Pin
David Crow17-Oct-07 5:20
David Crow17-Oct-07 5:20 
QuestionRe: c Pin
Hamid_RT17-Oct-07 5:04
Hamid_RT17-Oct-07 5:04 
AnswerRe: c Pin
Chandrasekharan P17-Oct-07 17:10
Chandrasekharan P17-Oct-07 17:10 
GeneralRe: c Pin
Hamid_RT17-Oct-07 19:57
Hamid_RT17-Oct-07 19:57 
GeneralRe: c Pin
Chandrasekharan P17-Oct-07 20:40
Chandrasekharan P17-Oct-07 20:40 
GeneralRe: c Pin
ThatsAlok17-Oct-07 20:48
ThatsAlok17-Oct-07 20:48 
GeneralRe: c Pin
Hamid_RT17-Oct-07 21:10
Hamid_RT17-Oct-07 21:10 

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.