OK I now truly appreciate that I can have static information on the server,
it is automatically preserved in any DLL static fields. It's great, I'm
happy. Only it's a little too good - when I restart a debugging session,
static information that I need cleared persists. Is there a way (aside from
recompiling everything) to reset this information, or will I be forced to
make my properties non-static until I'm done debugging?
Paul 6 1558
Paul,
Note, that static variables live in the scope of application. They are
shared by multiple sessions.
Eliyahu
"PJ6" <no****@nowhere .net> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. . OK I now truly appreciate that I can have static information on the
server, it is automatically preserved in any DLL static fields. It's great, I'm happy. Only it's a little too good - when I restart a debugging session, static information that I need cleared persists. Is there a way (aside
from recompiling everything) to reset this information, or will I be forced to make my properties non-static until I'm done debugging?
Paul
And is it possible to reset these static variables without having to
physcially recompile the DLL they reside in?
Paul
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:eb******** ******@TK2MSFTN GP09.phx.gbl... Paul,
Note, that static variables live in the scope of application. They are shared by multiple sessions.
Eliyahu
"PJ6" <no****@nowhere .net> wrote in message news:%2******** *******@tk2msft ngp13.phx.gbl.. . OK I now truly appreciate that I can have static information on the server, it is automatically preserved in any DLL static fields. It's great, I'm happy. Only it's a little too good - when I restart a debugging session, static information that I need cleared persists. Is there a way (aside from recompiling everything) to reset this information, or will I be forced to make my properties non-static until I'm done debugging?
Paul
Sure. IISReset.
Note that starting up the debugger will in fact recompile your .dll and
restart IIS. As you're noticed, "re-starting" the debugger does not
actually stop and start it.
So in your specific case, No, you cannot simply clear out Static
members while the application is running. That's why you marked them
Static in the first place!
Jason Kester
Expat Software Consulting Services http://www.expatsoftware.com/
What is IISReset?
Paul
"Jason Kester" <ja*********@gm ail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Sure. IISReset.
Note that starting up the debugger will in fact recompile your .dll and restart IIS. As you're noticed, "re-starting" the debugger does not actually stop and start it.
So in your specific case, No, you cannot simply clear out Static members while the application is running. That's why you marked them Static in the first place!
Jason Kester Expat Software Consulting Services http://www.expatsoftware.com/
IISReset is a command line application you can run to start and stop
IIS.
--
Scott http://www.OdeToCode.com/blogs/scott/
On Tue, 13 Sep 2005 20:26:19 -0400, "PJ6" <no****@nowhere .net> wrote: What is IISReset?
Paul
Well slap me silly. It's right there in system32.
Thanks,
Paul
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:4o******** *************** *********@4ax.c om... IISReset is a command line application you can run to start and stop IIS.
-- Scott http://www.OdeToCode.com/blogs/scott/
On Tue, 13 Sep 2005 20:26:19 -0400, "PJ6" <no****@nowhere .net> wrote:
What is IISReset?
Paul This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: joes |
last post by:
Hi folks!
I noticed in my static example which I did in PHP that the static
variable is not stored over multiple php pages. So this does differ
than to other OO languages like JSP. Is this so or did I something
wrong?
MyClass.php:
<?
class MyClass
|
by: Guadala Harry |
last post by:
Just wondering what it would take to call a static method in a static class
of an ASP.NET 1.1 Web app from a different application.
Specifically, I have a little "utility application" (C# Windows desktop
application) that I have on my Web server. All of the ASP.NET Web
applications on the same server each have a static class with static...
|
by: Girish |
last post by:
so I was looking at an example on codeproject.com that talked about how to
globalize your error handling. I was extremely confused by some code. Id
appreciate if someone could help me out by understanding this.
URL if anyone is interested:
http://www.codeproject.com/aspnet/JcGlobalErrorHandling.asp#xx726891xx
1) Ok, so in short, the way...
|
by: Simone Chiaretta |
last post by:
I've a very strange behaveour related to a website we built:
from times to times, something should happen on the server, and all static variables inside the web application, both defined inside aspx code-behind and in business logic (C# classes used by the aspx) lose their value.
I cannot reproduce this on our development server, so I cannot...
|
by: pittendrigh |
last post by:
There must be millions of dynamically generated
html pages out there now, built by on-the-fly php code
(and jsp, perl cgi, asp, etc).
Programatic page generation is transparently useful.
But querying a database, negotiatinig lots of if-then-else logic
and echo'ing html code out on port 80 every time a
page is requested has to be a huge...
| |
by: James Crosswell |
last post by:
I want to create a class with a static property as follows:
class MyClass
{
private static List<MyHandlerRegisteredHandlers =
new List<MyHandler>;
}
I then want to be able to create descendants of the MyHandler class
which will register themselves using a RegisterHandler method, which
|
by: Fred Mertz |
last post by:
I'm wondering what some of the important considerations are regarding
implementing the DAL as a static class vs creating instances of it as
needed.
I'm writing a .NET 2.0 Windows application (MDI) that will communicate with
a SQL Server; approximately 120 users.
On smaller apps I have tended to implement the DAL as a static class. But...
|
by: Benton |
last post by:
Hi there,
I'm having a problem with a method which resides on a static class I have on
my ASP.NET application.
public static string FilterCenter(string fieldName)
{
string centers =
((User)System.Web.HttpContext.Current.Session).Centers;
|
by: =?Utf-8?B?VG9kZA==?= |
last post by:
What is the memory footprint of static methods of a windows app running on a
server when the server spins up multiple instances of the application?
In my envirionment, we have a Citrix server farm running .Net 2.0 windows
apps. Does the framework allow for instances of the same application to
access the same memory space where static...
|
by: =?Utf-8?B?TWF0dA==?= |
last post by:
I'm having a problem with a static class constructor being called twice. I
have the static class MasterTaskList which uses a BackgroundWorker to execute
multiple methods on a separate thread. The static constructor calls a reset
function which creates a new instance of BackgroundWorker and attaches the
appropriate event handlers. There is also...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |