473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

static server-side information

PJ6
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
Nov 19 '05 #1
6 1553
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***************@tk2msftngp13.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

Nov 19 '05 #2
PJ6
And is it possible to reset these static variables without having to
physcially recompile the DLL they reside in?

Paul

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eb**************@TK2MSFTNGP09.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***************@tk2msftngp13.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


Nov 19 '05 #3
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/

Nov 19 '05 #4
PJ6
What is IISReset?

Paul

"Jason Kester" <ja*********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.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/

Nov 19 '05 #5
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


Nov 19 '05 #6
PJ6
Well slap me silly. It's right there in system32.

Thanks,
Paul

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:4o********************************@4ax.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

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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...
1
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...
3
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...
8
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...
5
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...
7
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...
10
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...
3
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 =...
3
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...
6
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.