RE: Call stack

"Diogo de Andrade" <[email protected]> Wed, 9 Feb 2005 14:13:10 -0000
Newsgroups gmane.games.devel.windows
Message-ID <000001c50eb1$7f8610e0$2501a8c0@valinor>
Is there something I should enable/include/etc to make this work? I've
tried creating a simple console application and added the files
available in the URL you provided, but it just failed. Debug output:
 
GetFunctionCaller() : SymFromAddr() failed. GetLastError()==487
GetFunctionCaller() : SymGetLineFromAddr64() failed. GetLastError()==487
 
(0) : ()
 
GetFunctionCaller() : SymFromAddr() failed. GetLastError()==487
GetFunctionCaller() : SymGetLineFromAddr64() failed. GetLastError()==487
 
(0) : ()
 
GetFunctionCaller() : SymFromAddr() failed. GetLastError()==487
GetFunctionCaller() : SymGetLineFromAddr64() failed. GetLastError()==487
 
(0) : ()
 
GetFunctionCaller() : SymFromAddr() failed. GetLastError()==487
GetFunctionCaller() : SymGetLineFromAddr64() failed. GetLastError()==487
 
(0) : ()
 
GetFunctionCaller() : SymFromAddr() failed. GetLastError()==487
GetFunctionCaller() : SymGetLineFromAddr64() failed. GetLastError()==487
 
(0) : ()
 
GetFunctionCaller() : SymFromAddr() failed. GetLastError()==487
GetFunctionCaller() : SymGetLineFromAddr64() failed. GetLastError()==487
 
(0) : ()
 
The thread 0xED8 has exited with code 0 (0x0).
 
Maybe I forgot some flag in the compile settings.
Anyway, thanks for the help.
Diogo de Andrade
Director Criativo e de Tecnologia
Spellcaster Studios
[email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Simon O'Connor
Sent: quarta-feira, 9 de Fevereiro de 2005 13:58
To: [email protected]
Subject: Re: [GD-Windows] Call stack
 

I wrote some code a while back that sounds like what you're after - or
at least should point you in the right direction:
http://www.sc3d.com/thought/snippets/debugging/GetFunctionCaller/
NB: It's not quite what I'd class as "production" quality - it was
written for debugging purposes only :o)
Cheers,

Simon O'Connor
Programmer @ Reflections Interactive
& Microsoft DirectX MVP

--- "Diogo de Andrade" <[email protected]> wrote:

From: "Diogo de Andrade" <[email protected]>
Date: Wed, 9 Feb 2005 13:43:16 -0000
To: <[email protected]>
Subject: [GD-Windows] Call stack

Hey all! 

This is a long shot, but is there any way to output the call stack in 
MSVC 6.0? 
More precisely, I'm having some problems with the recording/playback in 
my engine, and I tracked it to the random number generated (when on 
playback, it is being called more often than on recording, which is a 
strange behavior). Anyway, I'm logging the output of the random number 
generator (this is how I found out the asynch), but it would be really 
helpful if I could output to the log file the call stack just to see 
exactly WHO is calling the random number generator out of turn... 
Is there any "simple" way of doing this (just for debug purposes)? 

Thanks in advance (and sorry if this is OT, but I'm not sure) 

Diogo de Andrade 
Creative and Technical Director 
Spellcaster Studios 
[email protected] 






------------------------------------------------------- 
SF email is sponsored by - The IT Product Guide 
Read honest & candid reviews on hundreds of IT Products from real users.

Discover which products truly live up to the hype. Start reading now. 
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click 
_______________________________________________ 
Gamedevlists-windows mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows 
Archives: 
http://sourceforge.net/mailarchive/forum.php?forum_id=555
------------------------------------------------------- SF email is
sponsored by - The IT Product Guide Read honest & candid reviews on
hundreds of IT Products from real users. Discover which products truly
live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
_______________________________________________ Gamedevlists-windows
mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5