<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Caveats about System.Diagnostics.StackTrace</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx</link><description>The .Net frameworks provides the System.Diagnostics.StackTrace class which allows you to get a stack trace at runtime. This can be handy for diagnostic purposes such as implementing an assert dialog. However, beware of the following about the StackTrace</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Aufrufende Routinen rausbekommen ? | hilpers</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#9348470</link><pubDate>Tue, 20 Jan 2009 19:18:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9348470</guid><dc:creator>Aufrufende Routinen rausbekommen ? | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers.com/875636-aufrufende-routinen-rausbekommen"&gt;http://www.hilpers.com/875636-aufrufende-routinen-rausbekommen&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9348470" width="1" height="1"&gt;</description></item><item><title>Copyright Revewals &amp;raquo; Mike Stall&amp;#8217;s .NET Debugging Blog : Caveats about System.Diagnostics &amp;#8230;</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#8350644</link><pubDate>Wed, 02 Apr 2008 13:15:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8350644</guid><dc:creator>Copyright Revewals » Mike Stall’s .NET Debugging Blog : Caveats about System.Diagnostics …</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://copyrightrenewalsblog.info/mike-stalls-net-debugging-blog-caveats-about-systemdiagnostics/"&gt;http://copyrightrenewalsblog.info/mike-stalls-net-debugging-blog-caveats-about-systemdiagnostics/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8350644" width="1" height="1"&gt;</description></item><item><title>MSDN Blog Postings  &amp;raquo; Why debugging breaks in optimized (production) builds.</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#5296673</link><pubDate>Fri, 05 Oct 2007 20:37:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5296673</guid><dc:creator>MSDN Blog Postings  » Why debugging breaks in optimized (production) builds.</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/10/05/why-debugging-breaks-in-optimized-production-builds/"&gt;http://msdnrss.thecoderblogs.com/2007/10/05/why-debugging-breaks-in-optimized-production-builds/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5296673" width="1" height="1"&gt;</description></item><item><title>Why debugging breaks in optimized (production) builds.</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#5295290</link><pubDate>Fri, 05 Oct 2007 19:09:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5295290</guid><dc:creator>Mike Stall's .NET Debugging Blog</dc:creator><description>&lt;p&gt;You may have noticed that debugging optimized builds (eg, what you commonly get when you attach to a&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5295290" width="1" height="1"&gt;</description></item><item><title>
	blog.iridescence.no : Getting the Current Stack Trace
</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#2077864</link><pubDate>Wed, 11 Apr 2007 00:41:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2077864</guid><dc:creator>
	blog.iridescence.no : Getting the Current Stack Trace
</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.iridescence.no/Posts/GettingtheCurrentStackTrace.aspx"&gt;http://blog.iridescence.no/Posts/GettingtheCurrentStackTrace.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2077864" width="1" height="1"&gt;</description></item><item><title>You can't  get a mixed-mode callstack from inprocess.</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#449773</link><pubDate>Wed, 10 Aug 2005 08:21:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:449773</guid><dc:creator>Mike Stall's .NET Debugging Blog</dc:creator><description>You can't get a full-mixed (both managed+ native) stack of a thread within your own process. You can...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=449773" width="1" height="1"&gt;</description></item><item><title>re: Caveats about System.Diagnostics.StackTrace</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#418573</link><pubDate>Tue, 17 May 2005 13:09:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418573</guid><dc:creator>Qflash</dc:creator><description>RePost:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.yeyan.cn/Programming/CaveatsSystemDiagnosticsStackTrace.aspx"&gt;http://www.yeyan.cn/Programming/CaveatsSystemDiagnosticsStackTrace.aspx&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418573" width="1" height="1"&gt;</description></item><item><title>re: Caveats about System.Diagnostics.StackTrace</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#403901</link><pubDate>Thu, 31 Mar 2005 01:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:403901</guid><dc:creator>Mike Stall</dc:creator><description>Jason - your observations are right on. The stack trace is naive with respect to cross thread calls. It just traces the current thread and stops. &lt;br&gt;&lt;br&gt;FYI, VS can show cross-thread stack traces because it does a extra work under the covers:&lt;br&gt;- getting stack trace from all threads of interest&lt;br&gt;- tracking cross-thread calls in the stack trace&lt;br&gt;- stitching the stacks back together based off the cross-thread calls into a single unified stack.&lt;br&gt;&lt;br&gt;One approach would be to have a wrapper around the Queue function which grabs a stack trace and stores it in your message.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=403901" width="1" height="1"&gt;</description></item><item><title>re: Caveats about System.Diagnostics.StackTrace</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#403886</link><pubDate>Thu, 31 Mar 2005 00:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:403886</guid><dc:creator>Jason Coyne</dc:creator><description>I am trying to use the StackTrace class to get my current stack trace for some logging. Everything is working fine, except when I am using threading (specifically WaitCallBack and ThreadPool.QueueUserWorkItem)&lt;br&gt;&lt;br&gt;When I try to walk the stack from a location that has been called via QueueUserWorkItem, the stack stops at the point where the thread was launched. Is there a way to walk back further into the parent thread's stack (at the time that my own thread was created, not the current state)&lt;br&gt;&lt;br&gt;Thanks, Jason.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=403886" width="1" height="1"&gt;</description></item><item><title>re: Caveats about System.Diagnostics.StackTrace</title><link>http://blogs.msdn.com/b/jmstall/archive/2005/03/20/399287.aspx#401424</link><pubDate>Thu, 24 Mar 2005 13:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:401424</guid><dc:creator>mihailik</dc:creator><description>Yeah, I found that little note in doc.&lt;br&gt;&lt;br&gt;I think, it must be stated with more tension in documentation — many people can skip this small note and fall into misunderstanding.&lt;br&gt;&lt;br&gt;Thank you for important information, Mike.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=401424" width="1" height="1"&gt;</description></item></channel></rss>