RE: [GD-Windows] Call stack
Brought to you by:
vexxed72
From: Diogo de A. <Dio...@ne...> - 2005-02-09 14:13:39
|
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: =20 GetFunctionCaller() : SymFromAddr() failed. GetLastError()=3D=3D487 GetFunctionCaller() : SymGetLineFromAddr64() failed. = GetLastError()=3D=3D487 =20 (0) : () =20 GetFunctionCaller() : SymFromAddr() failed. GetLastError()=3D=3D487 GetFunctionCaller() : SymGetLineFromAddr64() failed. = GetLastError()=3D=3D487 =20 (0) : () =20 GetFunctionCaller() : SymFromAddr() failed. GetLastError()=3D=3D487 GetFunctionCaller() : SymGetLineFromAddr64() failed. = GetLastError()=3D=3D487 =20 (0) : () =20 GetFunctionCaller() : SymFromAddr() failed. GetLastError()=3D=3D487 GetFunctionCaller() : SymGetLineFromAddr64() failed. = GetLastError()=3D=3D487 =20 (0) : () =20 GetFunctionCaller() : SymFromAddr() failed. GetLastError()=3D=3D487 GetFunctionCaller() : SymGetLineFromAddr64() failed. = GetLastError()=3D=3D487 =20 (0) : () =20 GetFunctionCaller() : SymFromAddr() failed. GetLastError()=3D=3D487 GetFunctionCaller() : SymGetLineFromAddr64() failed. = GetLastError()=3D=3D487 =20 (0) : () =20 The thread 0xED8 has exited with code 0 (0x0). =20 Maybe I forgot some flag in the compile settings. Anyway, thanks for the help. Diogo de Andrade Director Criativo e de Tecnologia Spellcaster Studios dio...@sp... -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Simon O'Connor Sent: quarta-feira, 9 de Fevereiro de 2005 13:58 To: gam...@li... Subject: Re: [GD-Windows] Call stack =20 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" <Dio...@ne...> wrote: From: "Diogo de Andrade" <Dio...@ne...> Date: Wed, 9 Feb 2005 13:43:16 -0000 To: <gam...@li...> Subject: [GD-Windows] Call stack Hey all!=20 This is a long shot, but is there any way to output the call stack in=20 MSVC 6.0?=20 More precisely, I'm having some problems with the recording/playback in=20 my engine, and I tracked it to the random number generated (when on=20 playback, it is being called more often than on recording, which is a=20 strange behavior). Anyway, I'm logging the output of the random number=20 generator (this is how I found out the asynch), but it would be really=20 helpful if I could output to the log file the call stack just to see=20 exactly WHO is calling the random number generator out of turn...=20 Is there any "simple" way of doing this (just for debug purposes)?=20 Thanks in advance (and sorry if this is OT, but I'm not sure)=20 Diogo de Andrade=20 Creative and Technical Director=20 Spellcaster Studios=20 dio...@sp...=20 -------------------------------------------------------=20 SF email is sponsored by - The IT Product Guide=20 Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick=20 _______________________________________________=20 Gamedevlists-windows mailing list=20 Gam...@li...=20 https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows=20 Archives:=20 http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 ------------------------------------------------------- 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_id=14396&op=3Dick _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 |