Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2004, 03:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Trace Class

Hello,

I have the following code for using the trace:
Code:
public sub New()
  'The DatabaseTraceListener is a class that I created
  Trace.Listeners.Add(new DatabaseTraceListener())
end sub

protected overrides sub Finalize()
  mybase.Finalize()
  Trace.Listeners.Clear()
end sub
I use this in my code in multiple classes. Whenever the class is created, a trace is created and upon finalization, the trace is removed. However, if I have multiple classes open, and one finalizes and calls the clear() method, will that remove the trace listener for the other class? If so, how would I only remove the appropriate trace object for the class, other than maintaining a global variable trace object?

Thanks,

Brian Mains
__________________
Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
... how to load a page without a trace ??? dk6607 ASP.NET 1.0 and 1.1 Professional 4 September 4th, 2007 09:10 AM
Trace logoff error l.wolf Oracle 0 June 7th, 2007 05:10 AM
using Trace Tids ASP.NET 1.0 and 1.1 Basics 0 August 15th, 2004 02:20 PM
Collection as a Trace/Debug Listener? llyal2000 C# 2 June 10th, 2004 11:10 AM
Debug and Trace bmains ASP.NET 1.x and 2.0 Application Design 3 March 17th, 2004 09:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.