Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: code analysis Pin
Cedric Moonen16-Apr-08 23:45
Cedric Moonen16-Apr-08 23:45 
GeneralDetect if pointer points to the stack or the heap Pin
piul16-Apr-08 21:55
piul16-Apr-08 21:55 
GeneralRe: Detect if pointer points to the stack or the heap [modified] Pin
Naveen16-Apr-08 23:13
Naveen16-Apr-08 23:13 
GeneralRe: Detect if pointer points to the stack or the heap Pin
Cedric Moonen16-Apr-08 23:25
Cedric Moonen16-Apr-08 23:25 
GeneralRe: Detect if pointer points to the stack or the heap Pin
piul16-Apr-08 23:36
piul16-Apr-08 23:36 
GeneralRe: Detect if pointer points to the stack or the heap Pin
CPallini16-Apr-08 23:53
mveCPallini16-Apr-08 23:53 
GeneralRe: Detect if pointer points to the stack or the heap Pin
Moak17-Apr-08 0:20
Moak17-Apr-08 0:20 
GeneralRe: Detect if pointer points to the stack or the heap Pin
James R. Twine17-Apr-08 8:05
James R. Twine17-Apr-08 8:05 
   If I remember my history correctly, a certain bit is set on all dynamically allocated memory?  I believe that dynamic allocation maps into your address space at a certain starting address, and you can see if you are above that address.

   I am pretty certain that there is a bit that is set for all addresses used for heap allocations.

   But as others have said, there is some other problem in how your list is designed or being used.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



GeneralRe: Detect if pointer points to the stack or the heap Pin
Naveen17-Apr-08 14:03
Naveen17-Apr-08 14:03 
GeneralRe: Detect if pointer points to the stack or the heap Pin
Stephen Hewitt17-Apr-08 15:20
Stephen Hewitt17-Apr-08 15:20 
GeneralGet ProjectName at compiletime Pin
hansipet16-Apr-08 20:43
hansipet16-Apr-08 20:43 
GeneralRe: Get ProjectName at compiletime Pin
Hamid_RT16-Apr-08 20:46
Hamid_RT16-Apr-08 20:46 
AnswerRe: Get ProjectName at compiletime Pin
Rajkumar R16-Apr-08 21:45
Rajkumar R16-Apr-08 21:45 
GeneralRe: Get ProjectName at compiletime Pin
CPallini16-Apr-08 23:40
mveCPallini16-Apr-08 23:40 
GeneralCalculating System measurements in MFC Pin
nisha0000016-Apr-08 17:16
nisha0000016-Apr-08 17:16 
GeneralRe: Calculating System measurements in MFC Pin
_AnsHUMAN_ 16-Apr-08 18:12
_AnsHUMAN_ 16-Apr-08 18:12 
GeneralRe: Calculating System measurements in MFC Pin
nisha0000016-Apr-08 18:36
nisha0000016-Apr-08 18:36 
GeneralRe: Calculating System measurements in MFC Pin
Maruf Maniruzzaman16-Apr-08 19:00
Maruf Maniruzzaman16-Apr-08 19:00 
QuestionRe: Calculating System measurements in MFC Pin
Rajesh R Subramanian16-Apr-08 19:29
professionalRajesh R Subramanian16-Apr-08 19:29 
GeneralRe: Calculating System measurements in MFC Pin
Hamid_RT16-Apr-08 19:31
Hamid_RT16-Apr-08 19:31 
GeneralRe: Calculating System measurements in MFC Pin
nisha0000016-Apr-08 19:54
nisha0000016-Apr-08 19:54 
GeneralRe: Calculating System measurements in MFC Pin
Hamid_RT16-Apr-08 20:50
Hamid_RT16-Apr-08 20:50 
GeneralSaving to an Outfile Pin
dajones0516-Apr-08 16:27
dajones0516-Apr-08 16:27 
GeneralRe: Saving to an Outfile Pin
Christian Graus16-Apr-08 17:57
protectorChristian Graus16-Apr-08 17:57 
GeneralRe: Saving to an Outfile Pin
Hamid_RT16-Apr-08 19:32
Hamid_RT16-Apr-08 19:32 

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.