Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sorting std::vector Pin
Todd Smith1-Nov-01 5:46
Todd Smith1-Nov-01 5:46 
GeneralRational Rose Pin
1-Nov-01 2:59
suss1-Nov-01 2:59 
GeneralRe: Rational Rose Pin
Fredy21-Feb-02 6:19
Fredy21-Feb-02 6:19 
QuestionGive me advice how to start in OpenGL? Pin
1-Nov-01 2:42
suss1-Nov-01 2:42 
AnswerRe: Give me advice how to start in OpenGL? Pin
Roger Allen1-Nov-01 3:40
Roger Allen1-Nov-01 3:40 
AnswerRe: Give me advice how to start in OpenGL? Pin
Jonathan de Halleux1-Nov-01 5:12
Jonathan de Halleux1-Nov-01 5:12 
AnswerRe: Give me advice how to start in OpenGL? Pin
Carlos Antollini1-Nov-01 5:42
Carlos Antollini1-Nov-01 5:42 
GeneralStackwalk in dbghelp/imagehlp (Advanced, debugging) Pin
EiSl1-Nov-01 2:41
EiSl1-Nov-01 2:41 
Hello all,

When walking through the stack (in my Unhandled Exception Handler) using StackWalk from dbghelp/imagehlp library, this function also provides me the parameters (max. 4) of the function called.

Now...
Where/how do they get that parameter info? Because I want to make a kind of raw-stack-dump, like provided in DrWatson logs. I need the address pointing to the frame containing the stack contents like (possible) parameters.

When doing the 'classic' way of stackwalking (using EBP-register as starting point=frame), than you will find:
- Return address (at offset 0, is previous function call)
- Program Counter (at offset 8)
- Possible parameters passed with function (at offset 16+)
But... when you use optimized code, above doesn't work most the time and MSDN suggests using the DBGHELP stuff. Also the other articles in MSDN are not diving into the raw-stack usage.

Above is quite complex material, and even MSDN (including technical articals) are not going that deep (except for using the classical way).

Thanks in advanced,

EiSl
Generalvideo conference Pin
yoavadler1-Nov-01 2:32
yoavadler1-Nov-01 2:32 
GeneralRe: video conference Pin
Paul A. Howes1-Nov-01 3:38
Paul A. Howes1-Nov-01 3:38 
GeneralRe: video conference Pin
yoavadler1-Nov-01 4:28
yoavadler1-Nov-01 4:28 
GeneralRe: video conference Pin
Michael P Butler1-Nov-01 11:32
Michael P Butler1-Nov-01 11:32 
GeneralRe: video conference Pin
14-Apr-02 4:55
suss14-Apr-02 4:55 
GeneralMy MSDN(2000.7 Ver) don't run correctly..help me Pin
Ding Bing1-Nov-01 2:26
Ding Bing1-Nov-01 2:26 
GeneralRe: My MSDN(2000.7 Ver) don't run correctly..help me Pin
Nish Nishant1-Nov-01 3:29
sitebuilderNish Nishant1-Nov-01 3:29 
GeneralRe: My MSDN(2000.7 Ver) don't run correctly..help me Pin
Bing Ding1-Nov-01 16:44
Bing Ding1-Nov-01 16:44 
GeneralRe: My MSDN(2000.7 Ver) don't run correctly..help me Pin
Nish Nishant1-Nov-01 16:58
sitebuilderNish Nishant1-Nov-01 16:58 
GeneralRe: My MSDN(2000.7 Ver) don't run correctly..help me Pin
Anders Molin1-Nov-01 3:47
professionalAnders Molin1-Nov-01 3:47 
QuestionHow to hide the popup menu of a CWebBrowser2 control? Pin
1-Nov-01 2:11
suss1-Nov-01 2:11 
AnswerRe: How to hide the popup menu of a CWebBrowser2 control? Pin
Erik Thompson1-Nov-01 7:42
sitebuilderErik Thompson1-Nov-01 7:42 
QuestionWhat means "dump data"? Pin
Maer7271-Nov-01 1:45
Maer7271-Nov-01 1:45 
AnswerRe: What means "dump data"? Pin
markkuk1-Nov-01 2:04
markkuk1-Nov-01 2:04 
GeneralRe: What means "dump data"? Pin
Maer7271-Nov-01 17:50
Maer7271-Nov-01 17:50 
Questionwhat means "run-time function"? Pin
Maer7271-Nov-01 1:38
Maer7271-Nov-01 1:38 
AnswerRe: what means "run-time function"? Pin
Nish Nishant1-Nov-01 3:07
sitebuilderNish Nishant1-Nov-01 3:07 

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.